public static final class ReturnType.VoidReturnType extends Object implements ReturnType
ReturnType.VoidReturnType
VOID
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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 . |
int |
hashCode() |
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 |
isAssignableFrom(Class<?> type)
Determines if this type is either the same as, or is a supertype of, the class represented by the
type
parameter. |
boolean |
isPrimitive()
Indicates whether or not the return type is a primitive.
|
boolean |
isSameAs(Class<?> type)
Determines if this type is the same type as the class represented by the
type parameter. |
boolean |
isSubtypeOf(Class<?> type)
Determines if this type is a subtype of the class represented by the
type parameter. |
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.
|
Class<Void> |
reference()
The object used to extract information for the message logger or message bundle, if applicable.
|
ThrowableType |
throwableReturnType()
Returns the exception return type if
ReturnType.isThrowable() returns true . |
String |
toString() |
String |
type()
Returns the qualified type name of the object.
|
public boolean hasFieldFor(Parameter parameter)
ReturnType
parameter
.hasFieldFor
in interface ReturnType
parameter
- the parameter to check.true
if the field exists, is accessible, mutable and is assignable from the type otherwise
false
.public boolean hasMethodFor(Parameter parameter)
ReturnType
parameter
.hasMethodFor
in interface ReturnType
parameter
- the parameter to check.true
if the method exists, is accessible and its parameter is assignable from the type, otherwise
false
.public boolean isThrowable()
ReturnType
isThrowable
in interface ReturnType
true
if the return type is an exception, otherwise
false
.public boolean isPrimitive()
ReturnType
isPrimitive
in interface ReturnType
true
if a primitive, otherwise false
.public String name()
ReturnType
name
in interface MessageObject
name
in interface ReturnType
public ThrowableType throwableReturnType()
ReturnType
ReturnType.isThrowable()
returns true
. Otherwise null
is
returned.throwableReturnType
in interface ReturnType
null
.public Class<Void> reference()
MessageObject
ExecutableElement
might be returned.reference
in interface MessageObject
public String type()
MessageObjectType
Object.class.getName()
type
in interface MessageObjectType
public boolean isAssignableFrom(Class<?> type)
MessageObjectType
type
parameter. If this type is assignable from the class true
is returned, otherwise false
.isAssignableFrom
in interface MessageObjectType
type
- the class type to check.true
if this type is the same as or a superclass of the class, otherwise false
.public boolean isSubtypeOf(Class<?> type)
MessageObjectType
type
parameter. If this type is a
subtype of the class true
is returned, otherwise false
.isSubtypeOf
in interface MessageObjectType
type
- the class type to check.true
if this type is a subtype of the class, otherwise false
.public boolean isSameAs(Class<?> type)
MessageObjectType
type
parameter. If this type is
the same type as the class true
is returned, otherwise false
.isSameAs
in interface MessageObjectType
type
- the class type to check.true
if this type is the same type as the class, otherwise false
.Copyright © 2017 JBoss by Red Hat. All rights reserved.