public interface ReturnType extends MessageObject, MessageObjectType
Modifier and Type | Interface and Description |
---|---|
static class |
ReturnType.VoidReturnType
Default type if the return type is void.
|
Modifier and Type | Field and Description |
---|---|
static ReturnType |
VOID |
Modifier and Type | Method and Description |
---|---|
boolean |
hasFieldFor(Parameter parameter)
Checks to see if the return type has a field with the name with the same name and type as the
parameter . |
boolean |
hasMethodFor(Parameter parameter)
Checks to see if the return type has a method with the name with the same name and parameter type as the
parameter . |
boolean |
isPrimitive()
Indicates whether or not the return type is a primitive.
|
boolean |
isThrowable()
Checks to see if the return type is an exception, extends Throwable.
|
String |
name()
Returns the qualified class name of the return type.
|
ThrowableType |
throwableReturnType()
Returns the exception return type if
isThrowable() returns true . |
isAssignableFrom, isSameAs, isSubtypeOf, type
reference
static final ReturnType VOID
boolean hasFieldFor(Parameter parameter)
parameter
.parameter
- the parameter to check.true
if the field exists, is accessible, mutable and is assignable from the type otherwise
false
.boolean hasMethodFor(Parameter parameter)
parameter
.parameter
- the parameter to check.true
if the method exists, is accessible and its parameter is assignable from the type, otherwise
false
.boolean isThrowable()
true
if the return type is an exception, otherwise
false
.boolean isPrimitive()
true
if a primitive, otherwise false
.String name()
name
in interface MessageObject
ThrowableType throwableReturnType()
null
.Copyright © 2023 JBoss by Red Hat. All rights reserved.