Uses of Interface
javax.lang.model.type.TypeMirror
Packages that use TypeMirror
Package
Description
Provides utilities for operations on abstract syntax trees (AST).
Interfaces used to model elements of the Java programming language.
Interfaces used to model Java programming language types.
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 TypeMirrorModifier and TypeMethodDescriptionabstract TypeMirrorReturns 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 TypeMirrorDocTrees.getType(DocTreePath path) Returns the language model type referred to by the leaf node of the givenDocTreePath, ornullif unknown.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 TypeMirrorModifier and TypeMethodDescriptionElement.asType()Returns the type defined by this element.ExecutableElement.asType()Returns the executable type defined by this executable element.ModuleElement.asType()Returns a pseudo-type for this module.PackageElement.asType()Returns a pseudo-type for this package.TypeElement.asType()Returns the type defined by this class or interface element, returning the prototypical type for an element representing a generic type.TypeParameterElement.asType()Returns the type variable corresponding to this type parameter element.VariableElement.asType()Returns the type of this variable.ExecutableElement.getReceiverType()ExecutableElement.getReturnType()Returns the return type of this executable.TypeElement.getSuperclass()Returns the direct superclass of this class or interface element.Methods in javax.lang.model.element that return types with arguments of type TypeMirrorModifier and TypeMethodDescriptionList<? 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.default List<? extends TypeMirror>TypeElement.getPermittedSubclasses()Returns the permitted classes of this class or interface element in declaration order.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 TypeMirrorModifier and TypeMethodDescriptionAnnotationValueVisitor.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.typeModifier and TypeInterfaceDescriptioninterfaceRepresents an array type.interfaceRepresents a declared type, either a class type or an interface type.interfaceRepresents a class or interface type that cannot be properly modeled.interfaceRepresents the type of an executable.interfaceRepresents an intersection type.interfaceA pseudo-type used where no actual type is appropriate.interfaceRepresents the null type.interfaceRepresents a primitive type.interfaceRepresents a reference type.interfaceRepresents a type variable.interfaceRepresents a union type.interfaceRepresents a wildcard type argument.Methods in javax.lang.model.type that return TypeMirrorModifier and TypeMethodDescriptionArrayType.getComponentType()Returns the component type of this array type.DeclaredType.getEnclosingType()Returns the type of the innermost enclosing instance or aNoTypeof kindNONEif there is no enclosing instance.WildcardType.getExtendsBound()Returns the upper bound of this wildcard.TypeVariable.getLowerBound()Returns the lower bound of this type variable.ExecutableType.getReceiverType()ExecutableType.getReturnType()Returns the return type of this executable.WildcardType.getSuperBound()Returns the lower bound of this wildcard.MirroredTypeException.getTypeMirror()Returns the type mirror corresponding to the type being accessed.UnknownTypeException.getUnknownType()Returns the unknown type.TypeVariable.getUpperBound()Returns the upper bound of this type variable.Methods in javax.lang.model.type that return types with arguments of type TypeMirrorModifier and TypeMethodDescriptionList<? extends TypeMirror>UnionType.getAlternatives()Returns the alternatives comprising this union type.List<? extends TypeMirror>IntersectionType.getBounds()Returns 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 TypeMirrorModifier and TypeMethodDescriptiondefault RTypeVisitor.visit(TypeMirror t) A convenience method equivalent tovisit(t, null).TypeVisitor.visit(TypeMirror t, P p) Visits a type.TypeVisitor.visitUnknown(TypeMirror t, P p) Visits an unknown kind of type.Constructors in javax.lang.model.type with parameters of type TypeMirrorModifierConstructorDescriptionConstructs a new MirroredTypeException for the specified type.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 TypeMirrorModifierConstructorDescriptionMirroredTypesException(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 TypeMirrorModifier and TypeMethodDescriptionTypes.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.Types.capture(TypeMirror t) Applies capture conversion to a type.Types.erasure(TypeMirror t) Returns the erasure of a type.Methods in javax.lang.model.util that return types with arguments of type TypeMirrorModifier and TypeMethodDescriptionList<? extends TypeMirror>Types.directSupertypes(TypeMirror t) Returns the direct supertypes of a type.Methods in javax.lang.model.util with parameters of type TypeMirrorModifier and TypeMethodDescriptionTypes.asElement(TypeMirror t) Returns the element corresponding to a type.Types.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.Types.erasure(TypeMirror t) Returns the erasure of a type.Types.getArrayType(TypeMirror componentType) Returns an array type with the specified component type.Types.getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs) Returns the type corresponding to a type element and actual type arguments.Types.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.Types.getWildcardType(TypeMirror extendsBound, TypeMirror superBound) Returns a new wildcard type.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.Types.unboxedType(TypeMirror t) Returns the type (a primitive type) of unboxed values of a given type.final RAbstractTypeVisitor6.visit(TypeMirror t) Visits any type mirror as if by passing itself to that type mirror'sacceptmethod and passingnullfor the additional parameter.final RAbstractTypeVisitor6.visit(TypeMirror t, P p) Visits any type mirror as if by passing itself to that type mirror'sacceptmethod.SimpleAnnotationValueVisitor6.visitType(TypeMirror t, P p) Visits a type value in an annotation.AbstractTypeVisitor6.visitUnknown(TypeMirror t, P p) Visits an unknown kind of type.