Package org.jboss.logging.processor.apt
Class ReturnTypeFactory.VoidReturnType
java.lang.Object
org.jboss.logging.processor.apt.ReturnTypeFactory.VoidReturnType
- All Implemented Interfaces:
AnnotatedConstruct
,Element
,ClassType
,DelegatingElement
,ReturnType
- Enclosing class:
- ReturnTypeFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private static ReturnTypeFactory.VoidReturnType
private final Element
private final NoType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasType()
boolean
The element to delegate the default methods to.private static ReturnTypeFactory.VoidReturnType
getInstance
(Types types) int
hashCode()
boolean
isAssignableFrom
(Class<?> type) Determines if this type is either the same as, or is a supertype of, the class represented by thetype
parameter.boolean
Determines if this type is the same type as the class represented by thetype
parameter.boolean
isSubtypeOf
(Class<?> type) Determines if this type is a subtype of the class represented by thetype
parameter.boolean
Checks to see if the return type is an exception, extends Throwable or the value of aSupplier
is a Throwable type.name()
Returns the qualified class name of the return type.Returns the exception return type ifReturnType.isThrowable()
returnstrue
.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWith
Methods inherited from interface org.jboss.logging.processor.model.ReturnType
resolvedType
-
Field Details
-
INSTANCE
-
voidElement
-
voidType
-
hash
private final int hash
-
-
Constructor Details
-
VoidReturnType
-
-
Method Details
-
getInstance
-
asType
- Specified by:
asType
in interfaceDelegatingElement
- Specified by:
asType
in interfaceElement
-
isThrowable
public boolean isThrowable()Description copied from interface:ReturnType
Checks to see if the return type is an exception, extends Throwable or the value of aSupplier
is a Throwable type.- Specified by:
isThrowable
in interfaceReturnType
- Returns:
true
if the return type is an exception, otherwisefalse
.- See Also:
-
name
Description copied from interface:ReturnType
Returns the qualified class name of the return type.- Specified by:
name
in interfaceReturnType
- Returns:
- the qualified class name fo the return type.
-
throwableReturnType
Description copied from interface:ReturnType
Returns the exception return type ifReturnType.isThrowable()
returnstrue
. Otherwisenull
is returned.- Specified by:
throwableReturnType
in interfaceReturnType
- Returns:
- an exception return type, otherwise
null
.
-
hashCode
public int hashCode() -
equals
-
toString
-
isAssignableFrom
Description copied from interface:ClassType
Determines if this type is either the same as, or is a supertype of, the class represented by thetype
parameter. If this type is assignable from the classtrue
is returned, otherwisefalse
.- Specified by:
isAssignableFrom
in interfaceClassType
- Parameters:
type
- the class type to check.- Returns:
true
if this type is the same as or a superclass of the class, otherwisefalse
.
-
isSubtypeOf
Description copied from interface:ClassType
Determines if this type is a subtype of the class represented by thetype
parameter. If this type is a subtype of the classtrue
is returned, otherwisefalse
.- Specified by:
isSubtypeOf
in interfaceClassType
- Parameters:
type
- the class type to check.- Returns:
true
if this type is a subtype of the class, otherwisefalse
.
-
isSameAs
Description copied from interface:ClassType
Determines if this type is the same type as the class represented by thetype
parameter. If this type is the same type as the classtrue
is returned, otherwisefalse
. -
getDelegate
Description copied from interface:DelegatingElement
The element to delegate the default methods to.- Specified by:
getDelegate
in interfaceDelegatingElement
- Returns:
- the delegate
-