- asElement
Returns the element corresponding to a type. The type may be a DeclaredType or
TypeVariable. Returns
- isAssignable
Tests whether one type is assignable to another.
- erasure
Returns the erasure of a type.
- isSameType
Tests whether two TypeMirror objects represent the same type.Caveat: if either
of the arguments to t
- isSubtype
Tests whether one type is a subtype of another. Any type is considered to be a
subtype of itself.
- getDeclaredType
Returns the type corresponding to a type element and actual type arguments,
given a DeclaredType#get
- directSupertypes
Returns the direct supertypes of a type. The interface types, if any, will
appear last in the list.
- getPrimitiveType
Returns a primitive type.
- boxedClass
Returns the class of a boxed value of a given primitive type. That is, boxing
conversion is applied.
- getArrayType
Returns an array type with the specified component type.
- getWildcardType
Returns a new wildcard type argument. Either of the wildcard's bounds may be
specified, or neither,
- asMemberOf
Returns the type of an element when that element is viewed as a member of, or
otherwise directly con