public static final class ReturnType.VoidReturnType extends Object implements ReturnType
ReturnType.VoidReturnTypeVOID| 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)
ReturnTypeparameter.hasFieldFor in interface ReturnTypeparameter - 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)
ReturnTypeparameter.hasMethodFor in interface ReturnTypeparameter - the parameter to check.true if the method exists, is accessible and its parameter is assignable from the type, otherwise
false.public boolean isThrowable()
ReturnTypeisThrowable in interface ReturnTypetrue if the return type is an exception, otherwise
false.public boolean isPrimitive()
ReturnTypeisPrimitive in interface ReturnTypetrue if a primitive, otherwise false.public String name()
ReturnTypename in interface MessageObjectname in interface ReturnTypepublic ThrowableType throwableReturnType()
ReturnTypeReturnType.isThrowable() returns true. Otherwise null is
returned.throwableReturnType in interface ReturnTypenull.public Class<Void> reference()
MessageObjectExecutableElement
might be returned.reference in interface MessageObjectpublic String type()
MessageObjectTypeObject.class.getName()type in interface MessageObjectTypepublic boolean isAssignableFrom(Class<?> type)
MessageObjectTypetype
parameter. If this type is assignable from the class true is returned, otherwise false.isAssignableFrom in interface MessageObjectTypetype - 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)
MessageObjectTypetype parameter. If this type is a
subtype of the class true is returned, otherwise false.isSubtypeOf in interface MessageObjectTypetype - the class type to check.true if this type is a subtype of the class, otherwise false.public boolean isSameAs(Class<?> type)
MessageObjectTypetype parameter. If this type is
the same type as the class true is returned, otherwise false.isSameAs in interface MessageObjectTypetype - the class type to check.true if this type is the same type as the class, otherwise false.Copyright © 2014 JBoss by Red Hat. All Rights Reserved.