Package org.jboss.logging.processor.apt
Class AbstractClassType
java.lang.Object
org.jboss.logging.processor.apt.AbstractClassType
- All Implemented Interfaces:
AnnotatedConstruct,ClassType
- Direct Known Subclasses:
MessageInterfaceFactory.AptMessageInterface,MessageInterfaceFactory.LoggerInterface,ParameterFactory.AptParameter,ReturnTypeFactory.AptReturnType,ThrowableTypeFactory.AptThrowableType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Elementsprotected final ProcessingEnvironmentprotected final TypeMirrorprotected final Types -
Constructor Summary
ConstructorsConstructorDescriptionAbstractClassType(ProcessingEnvironment processingEnv, Element element) AbstractClassType(ProcessingEnvironment processingEnv, TypeMirror typeMirror) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisAssignableFrom(Class<?> type) Determines if this type is either the same as, or is a supertype of, the class represented by thetypeparameter.final booleanDetermines if this type is the same type as the class represented by thetypeparameter.final booleanisSubtypeOf(Class<?> type) Determines if this type is a subtype of the class represented by thetypeparameter.private TypeMirrorCreates aTypeMirrorfrom a class type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.lang.model.AnnotatedConstruct
getAnnotation, getAnnotationMirrors, getAnnotationsByType
-
Field Details
-
processingEnv
-
elements
-
types
-
typeMirror
-
-
Constructor Details
-
AbstractClassType
AbstractClassType(ProcessingEnvironment processingEnv, TypeMirror typeMirror) -
AbstractClassType
AbstractClassType(ProcessingEnvironment processingEnv, Element element)
-
-
Method Details
-
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. -
toType
Creates aTypeMirrorfrom a class type.- Parameters:
type- the type to create theTypeMirrorfor- Returns:
- the
TypeMirrorto represent the type
-