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 intprivate static ReturnTypeFactory.VoidReturnTypeprivate final Elementprivate final NoType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasType()booleanThe element to delegate the default methods to.private static ReturnTypeFactory.VoidReturnTypegetInstance(Types types) inthashCode()booleanisAssignableFrom(Class<?> type) Determines if this type is either the same as, or is a supertype of, the class represented by thetypeparameter.booleanDetermines if this type is the same type as the class represented by thetypeparameter.booleanisSubtypeOf(Class<?> type) Determines if this type is a subtype of the class represented by thetypeparameter.booleanChecks to see if the return type is an exception, extends Throwable or the value of aSupplieris 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 interface DelegatingElement
accept, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWithMethods inherited from interface ReturnType
resolvedType
-
Field Details
-
INSTANCE
-
voidElement
-
voidType
-
hash
private final int hash
-
-
Constructor Details
-
VoidReturnType
-
-
Method Details
-
getInstance
-
asType
- Specified by:
asTypein interfaceDelegatingElement- Specified by:
asTypein interfaceElement
-
isThrowable
public boolean isThrowable()Description copied from interface:ReturnTypeChecks to see if the return type is an exception, extends Throwable or the value of aSupplieris a Throwable type.- Specified by:
isThrowablein interfaceReturnType- Returns:
trueif the return type is an exception, otherwisefalse.- See Also:
-
name
Description copied from interface:ReturnTypeReturns the qualified class name of the return type.- Specified by:
namein interfaceReturnType- Returns:
- the qualified class name fo the return type.
-
throwableReturnType
Description copied from interface:ReturnTypeReturns the exception return type ifReturnType.isThrowable()returnstrue. Otherwisenullis returned.- Specified by:
throwableReturnTypein interfaceReturnType- Returns:
- an exception return type, otherwise
null.
-
hashCode
-
equals
-
toString
-
isAssignableFrom
Description copied from interface:ClassTypeDetermines if this type is either the same as, or is a supertype of, the class represented by thetypeparameter. If this type is assignable from the classtrueis returned, otherwisefalse.- Specified by:
isAssignableFromin interfaceClassType- Parameters:
type- the class type to check.- Returns:
trueif this type is the same as or a superclass of the class, otherwisefalse.
-
isSubtypeOf
Description copied from interface:ClassTypeDetermines if this type is a subtype of the class represented by thetypeparameter. If this type is a subtype of the classtrueis returned, otherwisefalse.- Specified by:
isSubtypeOfin interfaceClassType- Parameters:
type- the class type to check.- Returns:
trueif this type is a subtype of the class, otherwisefalse.
-
isSameAs
Description copied from interface:ClassTypeDetermines if this type is the same type as the class represented by thetypeparameter. If this type is the same type as the classtrueis returned, otherwisefalse. -
getDelegate
Description copied from interface:DelegatingElementThe element to delegate the default methods to.- Specified by:
getDelegatein interfaceDelegatingElement- Returns:
- the delegate
-