API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.lang.model.util. Types View Source
Author(s)
Joseph D. Darcy
Scott Seligman
Peter von der Ahé
Since
1.6
Version
1.7 06/07/11
Serial
Hierarchy
 Types
Subinterfaces
Description
public interface Types
  Utility methods for operating on types.
Methods
Hide/Show inherited methods
public Element asElement (TypeMirror t)
  Returns the element corresponding to a type.
public TypeMirror asMemberOf (DeclaredType containing, Element element)
  Returns the type of an element when that element is viewed as a member of, or otherwise directly contained by, a given type.
public TypeElement boxedClass (PrimitiveType p)
  Returns the class of a boxed value of a given primitive type.
public TypeMirror capture (TypeMirror t)
  Applies capture conversion to a type.
public boolean contains (TypeMirror t1, TypeMirror t2)
  Tests whether one type argument contains another.
public List<TypeMirror> directSupertypes (TypeMirror t)
  Returns the direct supertypes of a type.
public TypeMirror erasure (TypeMirror t)
  Returns the erasure of a type.
public ArrayType getArrayType (TypeMirror componentType)
  Returns an array type with the specified component type.
public DeclaredType getDeclaredType (DeclaredType containing, TypeElement typeElem, TypeMirror typeArgs)
  Returns the type corresponding to a type element and actual type arguments, given a containing type of which it is a member.
public DeclaredType getDeclaredType (TypeElement typeElem, TypeMirror typeArgs)
  Returns the type corresponding to a type element and actual type arguments.
public NoType getNoType (TypeKind kind)
  Returns a pseudo-type used where no actual type is appropriate.
public NullType getNullType ()
  Returns the null type.
public PrimitiveType getPrimitiveType (TypeKind kind)
  Returns a primitive type.
public WildcardType getWildcardType (TypeMirror extendsBound, TypeMirror superBound)
  Returns a new wildcard type argument.
public boolean isAssignable (TypeMirror t1, TypeMirror t2)
  Tests whether one type is assignable to another.
public boolean isSameType (TypeMirror t1, TypeMirror t2)
  Tests whether two TypeMirror objects represent the same type.
public boolean isSubsignature (ExecutableType m1, ExecutableType m2)
  Tests whether the signature of one method is a subsignature of another.
public boolean isSubtype (TypeMirror t1, TypeMirror t2)
  Tests whether one type is a subtype of another.
public PrimitiveType unboxedType (TypeMirror t)
  Returns the type (a primitive type) of unboxed values of a given type.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar