Uses of Interface
javax.lang.model.type.TypeMirror
-
Packages that use TypeMirror Package Description com.sun.source.util Provides utilities for operations on abstract syntax trees (AST).javax.lang.model.element Interfaces used to model elements of the Java programming language.javax.lang.model.type Interfaces used to model Java programming language types.javax.lang.model.util Utilities to assist in the processing of program elements and types. -
-
Uses of TypeMirror in com.sun.source.util
Methods in com.sun.source.util that return TypeMirror Modifier and Type Method Description abstract TypeMirrorTrees. getLub(CatchTree tree)Returns the lub of an exception parameter declared in a catch clause.abstract TypeMirrorTrees. getOriginalType(ErrorType errorType)Returns the original type from the ErrorType object.abstract TypeMirrorJavacTask. getTypeMirror(Iterable<? extends Tree> path)Returns a type mirror of the tree node determined by the specified path.abstract TypeMirrorTrees. getTypeMirror(TreePath path)Returns the TypeMirror for the Tree node identified by a given TreePath. -
Uses of TypeMirror in javax.lang.model.element
Methods in javax.lang.model.element that return TypeMirror Modifier and Type Method Description TypeMirrorElement. asType()Returns the type defined by this element.TypeMirrorExecutableElement. getReceiverType()TypeMirrorExecutableElement. getReturnType()Returns the return type of this executable.TypeMirrorTypeElement. getSuperclass()Returns the direct superclass of this type element.Methods in javax.lang.model.element that return types with arguments of type TypeMirror Modifier and Type Method Description List<? extends TypeMirror>TypeParameterElement. getBounds()Returns the bounds of this type parameter.List<? extends TypeMirror>TypeElement. getInterfaces()Returns the interface types directly implemented by this class or extended by this interface.List<? extends TypeMirror>ExecutableElement. getThrownTypes()Returns the exceptions and other throwables listed in this method or constructor'sthrowsclause in declaration order.Methods in javax.lang.model.element with parameters of type TypeMirror Modifier and Type Method Description RAnnotationValueVisitor. visitType(TypeMirror t, P p)Visits a type value in an annotation. -
Uses of TypeMirror in javax.lang.model.type
Subinterfaces of TypeMirror in javax.lang.model.type Modifier and Type Interface Description interfaceArrayTypeRepresents an array type.interfaceDeclaredTypeRepresents a declared type, either a class type or an interface type.interfaceErrorTypeRepresents a class or interface type that cannot be properly modeled.interfaceExecutableTypeRepresents the type of an executable.interfaceIntersectionTypeRepresents an intersection type.interfaceNoTypeA pseudo-type used where no actual type is appropriate.interfaceNullTypeRepresents the null type.interfacePrimitiveTypeRepresents a primitive type.interfaceReferenceTypeRepresents a reference type.interfaceTypeVariableRepresents a type variable.interfaceUnionTypeRepresents a union type.interfaceWildcardTypeRepresents a wildcard type argument.Methods in javax.lang.model.type that return TypeMirror Modifier and Type Method Description TypeMirrorArrayType. getComponentType()Returns the component type of this array type.TypeMirrorDeclaredType. getEnclosingType()Returns the type of the innermost enclosing instance or aNoTypeof kindNONEif there is no enclosing instance.TypeMirrorWildcardType. getExtendsBound()Returns the upper bound of this wildcard.TypeMirrorTypeVariable. getLowerBound()Returns the lower bound of this type variable.TypeMirrorExecutableType. getReceiverType()TypeMirrorExecutableType. getReturnType()Returns the return type of this executable.TypeMirrorWildcardType. getSuperBound()Returns the lower bound of this wildcard.TypeMirrorMirroredTypeException. getTypeMirror()Returns the type mirror corresponding to the type being accessed.TypeMirrorUnknownTypeException. getUnknownType()Returns the unknown type.TypeMirrorTypeVariable. getUpperBound()Returns the upper bound of this type variable.Methods in javax.lang.model.type that return types with arguments of type TypeMirror Modifier and Type Method Description List<? extends TypeMirror>UnionType. getAlternatives()Return the alternatives comprising this union type.List<? extends TypeMirror>IntersectionType. getBounds()Return the bounds comprising this intersection type.List<? extends TypeMirror>ExecutableType. getParameterTypes()Returns the types of this executable's formal parameters.List<? extends TypeMirror>ExecutableType. getThrownTypes()Returns the exceptions and other throwables listed in this executable'sthrowsclause.List<? extends TypeMirror>DeclaredType. getTypeArguments()Returns the actual type arguments of this type.List<? extends TypeMirror>MirroredTypesException. getTypeMirrors()Returns the type mirrors corresponding to the types being accessed.Methods in javax.lang.model.type with parameters of type TypeMirror Modifier and Type Method Description default RTypeVisitor. visit(TypeMirror t)A convenience method equivalent tovisit(t, null).RTypeVisitor. visit(TypeMirror t, P p)Visits a type.RTypeVisitor. visitUnknown(TypeMirror t, P p)Visits an unknown kind of type.Constructors in javax.lang.model.type with parameters of type TypeMirror Constructor Description MirroredTypeException(TypeMirror type)Constructs a new MirroredTypeException for the specified type.UnknownTypeException(TypeMirror t, Object p)Creates a newUnknownTypeException.Thepparameter may be used to pass in an additional argument with information about the context in which the unknown type was encountered; for example, the visit methods ofTypeVisitormay pass in their additional parameter.Constructor parameters in javax.lang.model.type with type arguments of type TypeMirror Constructor Description MirroredTypesException(List<? extends TypeMirror> types)Constructs a new MirroredTypesException for the specified types. -
Uses of TypeMirror in javax.lang.model.util
Methods in javax.lang.model.util that return TypeMirror Modifier and Type Method Description TypeMirrorTypes. 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.TypeMirrorTypes. capture(TypeMirror t)Applies capture conversion to a type.TypeMirrorTypes. erasure(TypeMirror t)Returns the erasure of a type.Methods in javax.lang.model.util that return types with arguments of type TypeMirror Modifier and Type Method Description List<? extends TypeMirror>Types. directSupertypes(TypeMirror t)Returns the direct supertypes of a type.Methods in javax.lang.model.util with parameters of type TypeMirror Modifier and Type Method Description ElementTypes. asElement(TypeMirror t)Returns the element corresponding to a type.TypeMirrorTypes. capture(TypeMirror t)Applies capture conversion to a type.booleanTypes. contains(TypeMirror t1, TypeMirror t2)Tests whether one type argument contains another.protected RSimpleTypeVisitor6. defaultAction(TypeMirror e, P p)The default action for visit methods.List<? extends TypeMirror>Types. directSupertypes(TypeMirror t)Returns the direct supertypes of a type.TypeMirrorTypes. erasure(TypeMirror t)Returns the erasure of a type.ArrayTypeTypes. getArrayType(TypeMirror componentType)Returns an array type with the specified component type.DeclaredTypeTypes. getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs)Returns the type corresponding to a type element and actual type arguments.DeclaredTypeTypes. 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.WildcardTypeTypes. getWildcardType(TypeMirror extendsBound, TypeMirror superBound)Returns a new wildcard type argument.booleanTypes. isAssignable(TypeMirror t1, TypeMirror t2)Tests whether one type is assignable to another.booleanTypes. isSameType(TypeMirror t1, TypeMirror t2)Tests whether twoTypeMirrorobjects represent the same type.booleanTypes. isSubtype(TypeMirror t1, TypeMirror t2)Tests whether one type is a subtype of another.PrimitiveTypeTypes. unboxedType(TypeMirror t)Returns the type (a primitive type) of unboxed values of a given type.RAbstractTypeVisitor6. visit(TypeMirror t)Visits any type mirror as if by passing itself to that type mirror'sacceptmethod and passingnullfor the additional parameter.RAbstractTypeVisitor6. visit(TypeMirror t, P p)Visits any type mirror as if by passing itself to that type mirror'sacceptmethod.RSimpleAnnotationValueVisitor6. visitType(TypeMirror t, P p)Visits a type value in an annotation.RAbstractTypeVisitor6. visitUnknown(TypeMirror t, P p)Visits an unknown kind of type.
-