Interface ClassType
-
- All Superinterfaces:
javax.lang.model.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
public interface ClassType extends javax.lang.model.AnnotatedConstruct
Date: 23.08.2011
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAssignableFrom(java.lang.Class<?> type)
Determines if this type is either the same as, or is a supertype of, the class represented by thetype
parameter.boolean
isSameAs(java.lang.Class<?> type)
Determines if this type is the same type as the class represented by thetype
parameter.boolean
isSubtypeOf(java.lang.Class<?> type)
Determines if this type is a subtype of the class represented by thetype
parameter.
-
-
-
Method Detail
-
isAssignableFrom
boolean isAssignableFrom(java.lang.Class<?> type)
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
.- Parameters:
type
- the class type to check.- Returns:
true
if this type is the same as or a superclass of the class, otherwisefalse
.
-
isSubtypeOf
boolean isSubtypeOf(java.lang.Class<?> type)
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
.- Parameters:
type
- the class type to check.- Returns:
true
if this type is a subtype of the class, otherwisefalse
.
-
isSameAs
boolean isSameAs(java.lang.Class<?> type)
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
.- Parameters:
type
- the class type to check.- Returns:
true
if this type is the same type as the class, otherwisefalse
.
-
-