Package org.jboss.logging.processor.apt
Class ReturnTypeFactory.VoidReturnType
- java.lang.Object
-
- org.jboss.logging.processor.apt.ReturnTypeFactory.VoidReturnType
-
- All Implemented Interfaces:
javax.lang.model.AnnotatedConstruct,javax.lang.model.element.Element,ClassType,DelegatingElement,ReturnType
- Enclosing class:
- ReturnTypeFactory
private static class ReturnTypeFactory.VoidReturnType extends java.lang.Object implements ReturnType
-
-
Field Summary
Fields Modifier and Type Field Description private inthashprivate static ReturnTypeFactory.VoidReturnTypeINSTANCEprivate javax.lang.model.element.ElementvoidElementprivate javax.lang.model.type.NoTypevoidType
-
Constructor Summary
Constructors Modifier Constructor Description privateVoidReturnType(javax.lang.model.util.Types types)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.lang.model.type.TypeMirrorasType()booleanequals(java.lang.Object obj)javax.lang.model.element.ElementgetDelegate()The element to delegate the default methods to.private static ReturnTypeFactory.VoidReturnTypegetInstance(javax.lang.model.util.Types types)inthashCode()booleanisAssignableFrom(java.lang.Class<?> type)Determines if this type is either the same as, or is a supertype of, the class represented by thetypeparameter.booleanisSameAs(java.lang.Class<?> type)Determines if this type is the same type as the class represented by thetypeparameter.booleanisSubtypeOf(java.lang.Class<?> type)Determines if this type is a subtype of the class represented by thetypeparameter.booleanisThrowable()Checks to see if the return type is an exception, extends Throwable or the value of aSupplieris a Throwable type.java.lang.Stringname()Returns the qualified class name of the return type.ThrowableTypethrowableReturnType()Returns the exception return type ifReturnType.isThrowable()returnstrue.java.lang.StringtoString()-
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 Detail
-
INSTANCE
private static ReturnTypeFactory.VoidReturnType INSTANCE
-
voidElement
private final javax.lang.model.element.Element voidElement
-
voidType
private final javax.lang.model.type.NoType voidType
-
hash
private final int hash
-
-
Method Detail
-
getInstance
private static ReturnTypeFactory.VoidReturnType getInstance(javax.lang.model.util.Types types)
-
asType
public javax.lang.model.type.TypeMirror asType()
- Specified by:
asTypein interfaceDelegatingElement- Specified by:
asTypein interfacejavax.lang.model.element.Element
-
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:
ReturnType.resolvedType()
-
name
public java.lang.String 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
public ThrowableType 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
public int hashCode()
- Specified by:
hashCodein interfacejavax.lang.model.element.Element- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejavax.lang.model.element.Element- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isAssignableFrom
public boolean isAssignableFrom(java.lang.Class<?> type)
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
public boolean isSubtypeOf(java.lang.Class<?> type)
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
public boolean isSameAs(java.lang.Class<?> type)
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
public javax.lang.model.element.Element getDelegate()
Description copied from interface:DelegatingElementThe element to delegate the default methods to.- Specified by:
getDelegatein interfaceDelegatingElement- Returns:
- the delegate
-
-