Interface ClassType
- All Superinterfaces:
AnnotatedConstruct
- All Known Subinterfaces:
MessageInterface, Parameter, ReturnType, ThrowableType
- All Known Implementing Classes:
AbstractClassType, MessageInterfaceFactory.AptMessageInterface, MessageInterfaceFactory.LoggerInterface, ParameterFactory.AptParameter, ParameterFactory.MessageMethodParameter, ReturnTypeFactory.AptReturnType, ReturnTypeFactory.VoidReturnType, ThrowableTypeFactory.AptReturnThrowableType, ThrowableTypeFactory.AptThrowableType
Date: 23.08.2011
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAssignableFrom(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.Methods inherited from interface AnnotatedConstruct
getAnnotation, getAnnotationMirrors, getAnnotationsByType
-
Method Details
-
isAssignableFrom
Determines 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.- Parameters:
type- the class type to check.- Returns:
trueif this type is the same as or a superclass of the class, otherwisefalse.
-
isSubtypeOf
Determines if this type is a subtype of the class represented by thetypeparameter. If this type is a subtype of the classtrueis returned, otherwisefalse.- Parameters:
type- the class type to check.- Returns:
trueif this type is a subtype of the class, otherwisefalse.
-
isSameAs
Determines 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.- Parameters:
type- the class type to check.- Returns:
trueif this type is the same type as the class, otherwisefalse.
-