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 Elements
protected final ProcessingEnvironment
protected final TypeMirror
protected final Types
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractClassType
(ProcessingEnvironment processingEnv, Element element) AbstractClassType
(ProcessingEnvironment processingEnv, TypeMirror typeMirror) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
isAssignableFrom
(Class<?> type) Determines if this type is either the same as, or is a supertype of, the class represented by thetype
parameter.final boolean
Determines if this type is the same type as the class represented by thetype
parameter.final boolean
isSubtypeOf
(Class<?> type) Determines if this type is a subtype of the class represented by thetype
parameter.private TypeMirror
Creates aTypeMirror
from a class type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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: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
. -
toType
Creates aTypeMirror
from a class type.- Parameters:
type
- the type to create theTypeMirror
for- Returns:
- the
TypeMirror
to represent the type
-