Save This Page
Home » openjdk-7 » com.sun.tools » javac » model » [javadoc | source]
com.sun.tools.javac.model
public class: JavacTypes [javadoc | source]
java.lang.Object
   com.sun.tools.javac.model.JavacTypes

All Implemented Interfaces:
    Types

Utility methods for operating on types.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Constructor:
 protected JavacTypes(Context context) 
    Public for use only by JavacProcessingEnvironment
Method from com.sun.tools.javac.model.JavacTypes Summary:
asElement,   asMemberOf,   boxedClass,   capture,   contains,   directSupertypes,   erasure,   getArrayType,   getDeclaredType,   getDeclaredType,   getNoType,   getNullType,   getPrimitiveType,   getWildcardType,   instance,   isAssignable,   isSameType,   isSubsignature,   isSubtype,   setContext,   unboxedType
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.model.JavacTypes Detail:
 public Element asElement(TypeMirror t) 
 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. For example, when viewed as a member of the parameterized type {@code Set}, the {@code Set.add} method is an {@code ExecutableType} whose parameter is of type {@code String}.
 public TypeElement boxedClass(PrimitiveType p) 
 public TypeMirror capture(TypeMirror t) 
 public boolean contains(TypeMirror t1,
    TypeMirror t2) 
 public List<Type> directSupertypes(TypeMirror t) 
 public TypeMirror erasure(TypeMirror t) 
 public ArrayType getArrayType(TypeMirror componentType) 
 public DeclaredType getDeclaredType(TypeElement typeElem,
    TypeMirror typeArgs) 
 public DeclaredType getDeclaredType(DeclaredType enclosing,
    TypeElement typeElem,
    TypeMirror typeArgs) 
 public NoType getNoType(TypeKind kind) 
 public NullType getNullType() 
 public PrimitiveType getPrimitiveType(TypeKind kind) 
 public WildcardType getWildcardType(TypeMirror extendsBound,
    TypeMirror superBound) 
 public static JavacTypes instance(Context context) 
 public boolean isAssignable(TypeMirror t1,
    TypeMirror t2) 
 public boolean isSameType(TypeMirror t1,
    TypeMirror t2) 
 public boolean isSubsignature(ExecutableType m1,
    ExecutableType m2) 
 public boolean isSubtype(TypeMirror t1,
    TypeMirror t2) 
 public  void setContext(Context context) 
    Use a new context. May be called from outside to update internal state for a new annotation-processing round.
 public PrimitiveType unboxedType(TypeMirror t)