Uses of Interface
net.sourceforge.pmd.lang.java.types.JTypeMirror
-
Packages that use JTypeMirror Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.symbols Prototype of a new symbol resolution framework that inter-operates cleanly with type resolution.net.sourceforge.pmd.lang.java.symbols.internal.ast net.sourceforge.pmd.lang.java.symbols.table net.sourceforge.pmd.lang.java.types Support for compile-time type resolution on the AST.net.sourceforge.pmd.lang.java.types.ast net.sourceforge.pmd.lang.java.types.internal.infer -
-
Uses of JTypeMirror in net.sourceforge.pmd.lang.java.ast
Methods in net.sourceforge.pmd.lang.java.ast that return JTypeMirror Modifier and Type Method Description static JTypeMirrorInternalApiBridge. buildTypeFromAstInternal(TypeSystem ts, Substitution lexicalSubst, ASTType node)@NonNull JTypeMirrorASTFormalParameter. getTypeMirror(TypingContext ctx)@NonNull JTypeMirrorASTLambdaExpression. getTypeMirror()Returns the type of the functional interface.@NonNull JTypeMirrorASTMethodReference. getTypeMirror()Returns the type of the functional interface.@NonNull JTypeMirrorASTTypeExpression. getTypeMirror(TypingContext ctx)@NonNull JTypeMirrorFunctionalExpression. getTypeMirror()Returns the type of the functional interface.default @NonNull JTypeMirrorTypeNode. getTypeMirror()Returns the compile-time type of this node.JTypeMirrorTypeNode. getTypeMirror(TypingContext typing)static @Nullable JTypeMirrorInternalApiBridge. getTypeMirrorInternal(TypeNode node)Methods in net.sourceforge.pmd.lang.java.ast with parameters of type JTypeMirror Modifier and Type Method Description static voidInternalApiBridge. setTypeMirrorInternal(TypeNode node, JTypeMirror inferred) -
Uses of JTypeMirror in net.sourceforge.pmd.lang.java.symbols
Methods in net.sourceforge.pmd.lang.java.symbols that return JTypeMirror Modifier and Type Method Description JTypeMirrorJTypeParameterSymbol. computeUpperBound()Returns the upper bound of this type variable.@Nullable JTypeMirrorJExecutableSymbol. getAnnotatedReceiverType(Substitution subst)Return the receiver type with all type annotations, when viewed under the given substitution.JTypeMirrorJMethodSymbol. getReturnType(Substitution subst)Returns the return type under the given substitution.JTypeMirrorJVariableSymbol. getTypeMirror(Substitution subst)Returns the type of this value, under the given substitution.Methods in net.sourceforge.pmd.lang.java.symbols that return types with arguments of type JTypeMirror Modifier and Type Method Description List<JTypeMirror>JExecutableSymbol. getFormalParameterTypes(Substitution subst)Returns the types of the formal parameters, when viewed under the given substitution.List<JTypeMirror>JExecutableSymbol. getThrownExceptionTypes(Substitution subst)Returns the types of the thrown exceptions, when viewed under the given substitution. -
Uses of JTypeMirror in net.sourceforge.pmd.lang.java.symbols.internal.ast
Methods in net.sourceforge.pmd.lang.java.symbols.internal.ast that return JTypeMirror Modifier and Type Method Description JTypeMirrorAstLocalVarSym. getTypeMirror(Substitution subst) -
Uses of JTypeMirror in net.sourceforge.pmd.lang.java.symbols.table
Methods in net.sourceforge.pmd.lang.java.symbols.table that return types with arguments of type JTypeMirror Modifier and Type Method Description ShadowChain<JTypeMirror,ScopeInfo>JSymbolTable. types()The chain of tables tracking type names that are in scope here (classes, type params, but not eg primitive types). -
Uses of JTypeMirror in net.sourceforge.pmd.lang.java.types
Subinterfaces of JTypeMirror in net.sourceforge.pmd.lang.java.types Modifier and Type Interface Description interfaceJClassTypeRepresents class and interface types, including functional interface types.interfaceJTypeVarThe type of a type variable.interfaceJWildcardTypeRepresents a wildcard type.interfaceSubstVarCommon supertype forJTypeVarandInferenceVar, the two kinds of types that can be substituted in types.Classes in net.sourceforge.pmd.lang.java.types that implement JTypeMirror Modifier and Type Class Description classJArrayTypeAn array type (1 dimension).classJIntersectionTypeAn intersection type.classJPrimitiveTypeMirror a primitive types.Fields in net.sourceforge.pmd.lang.java.types declared as JTypeMirror Modifier and Type Field Description JTypeMirrorTypeSystem. ERRORA constant to represent a typing error.JTypeMirrorTypeSystem. NO_TYPEA constant to represent the normal absence of a type.JTypeMirrorTypeSystem. NULL_TYPEThe bottom type of the reference type system.JTypeMirrorTypeSystem. UNKNOWNA constant to represent an unresolved type.Methods in net.sourceforge.pmd.lang.java.types that return JTypeMirror Modifier and Type Method Description default JTypeMirrorJTypeMirror. addAnnotation(@NonNull SymbolicValue.SymAnnot newAnnot)Returns a type mirror that is equal to this instance but has one more type annotation.@NonNull JTypeMirrorSubstitution. apply(@NonNull SubstVar var)Returns the type with which the given variable should be replaced.@Nullable JTypeMirrorTypingContext. apply(JVariableSymbol var)JTypeMirrorTypeSystem. arrayType(@NonNull JTypeMirror element, int numDimensions)Creates a new array type from an arbitrary element type.default @NonNull JTypeMirrorJWildcardType. asLowerBound()Returns the lower bound, or the bottom type if this is an "extends" wildcard.static @Nullable JTypeMirrorTypeOps. asSuper(@NonNull JTypeMirror t, @NonNull JClassSymbol s)default @NonNull JTypeMirrorJWildcardType. asUpperBound()Returns the upper bound, or Object if this is a "super" wildcard.static JTypeMirrorTypeConversion. binaryNumericPromotion(JTypeMirror t, JTypeMirror s)JLS§5.6.2 https://docs.oracle.com/javase/specs/jls/se9/html/jls-5.html#jls-5.6.2 Binary numeric promotion is performed on the operands of certain operators: The multiplicative operators *, /, and % (§15.17) The addition and subtraction operators for numeric types + and - (§15.18.2) The numerical comparison operators <, <=, >, and >= (§15.20.1) The numerical equality operators == and != (§15.21.1) The integer bitwise operators &, ^, and | (§15.22.1) In certain cases, the conditional operator ? : (§15.25)default JTypeMirrorJTypeMirror. box()Returns the primitive wrapper type of this type, if this is a primitive type.static JTypeMirrorTypeConversion. capture(JTypeMirror t)Perform capture conversion on the type t.JTypeMirrorTypeSystem. declaration(@Nullable JClassSymbol klass)LikeTypeSystem.typeOf(JTypeDeclSymbol, boolean), defaulting the erased parameter to false.static JTypeMirrorTypesFromReflection. fromReflect(Type reflected, TypeSystem ts)static @Nullable JTypeMirrorTypesFromReflection. fromReflect(TypeSystem ts, @NonNull Type reflected, LexicalScope lexicalScope, Substitution subst)Builds a type from reflection.static JTypeMirrorTypesFromReflection. fromReflect(org.apache.commons.lang3.reflect.Typed<?> reflected, TypeSystem ts)Builds a type from reflection.JTypeMirrorJMethodSig. getAnnotatedReceiverType()Return the type ofthisin the body of the method.static @Nullable JTypeMirrorTypeOps. getArrayComponent(@Nullable JTypeMirror t)default @Nullable JTypeMirrorJTypeMirror. getAsSuper(@NonNull JClassSymbol symbol)Returns the most specific declared supertype of this type whose erasure is the same as that of the parameter.@NonNull JTypeMirrorJWildcardType. getBound()Returns the bound.JTypeMirrorJArrayType. getComponentType()Gets the component type of this array.JTypeMirrorJMethodSig. getDeclaringType()Return the type that declares this method.JTypeMirrorJVariableSig. getDeclaringType()This is the substituted type.JTypeMirrorJArrayType. getElementType()Gets the element type of this array.JTypeMirrorJIntersectionType. getErasure()JTypeMirrorJPrimitiveType. getErasure()default JTypeMirrorJTypeMirror. getErasure()Returns the erasure of this type.default JTypeMirrorJWildcardType. getErasure()This is implemented for convenience.@NonNull JTypeMirrorJTypeVar. getLowerBound()Gets the lower bound.@NonNull JTypeMirrorJIntersectionType. getPrimaryBound()The primary bound of this intersection, which may be a type variable, array type, or class type (not an interface).JTypeMirrorJMethodSig. getReturnType()Return the result type of the method.JTypeMirrorJVariableSig. getTypeMirror()Returns the type given to the symbol in the particular scope this signature is valid in.@NonNull JTypeMirrorJTypeVar. getUpperBound()Gets the upper bound.JTypeMirrorTypeSystem. glb(Collection<? extends JTypeMirror> types)Returns the greatest lower bound of the given set of types.JTypeMirrorOverloadSelectionResult. ithFormalParam(int i)Returns the type of the i-th formal parameter of the method.static @Nullable JTypeMirrorTypesFromReflection. loadType(TypeSystem ctr, String className)Load a class.static @Nullable JTypeMirrorTypesFromReflection. loadType(TypeSystem ctr, String className, net.sourceforge.pmd.lang.java.symbols.internal.UnresolvedClassStore unresolvedStore)Load a class.JTypeMirrorTypeSystem. lub(Collection<? extends JTypeMirror> types)The least upper bound, or "lub", of a set of reference types is a shared supertype that is more specific than any other shared supertype (that is, no other shared supertype is a subtype of the least upper bound).@NonNull JTypeMirrorTypeSystem. parameterise(@NonNull JClassSymbol klass, @NonNull List<? extends JTypeMirror> typeArgs)Produce a parameterized type with the given symbol and type arguments.static JTypeMirrorTypeOps. projectUpwards(JTypeMirror t)Returns the upwards projection of the given type, with respect to the set of capture variables that are found in it.JTypeMirrorTypeSystem. rawType(@Nullable JTypeDeclSymbol klass)LikeTypeSystem.typeOf(JTypeDeclSymbol, boolean), defaulting the erased parameter to true.JTypeMirrorJPrimitiveType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)JTypeMirrorJTypeMirror. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)default JTypeMirrorSubstVar. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)static JTypeMirrorTypeOps. subst(@Nullable JTypeMirror type, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Replace the type variables occurring in the given type to their image by the given function.JTypeMirrorTypeSystem. typeOf(@Nullable JTypeDeclSymbol symbol, boolean isErased)Returns a type mirror for the given symbol.static JTypeMirrorTypeConversion. unaryNumericPromotion(JTypeMirror t)Performs Unary numeric promotion (JLS§5.6.1).default JTypeMirrorJTypeMirror. unbox()Returns the unboxed version of this type.JTypeMirrorJIntersectionType. withAnnotations(org.pcollections.PSet<SymbolicValue.SymAnnot> newTypeAnnots)JTypeMirrorJPrimitiveType. withAnnotations(org.pcollections.PSet<SymbolicValue.SymAnnot> newTypeAnnots)JTypeMirrorJTypeMirror. withAnnotations(org.pcollections.PSet<SymbolicValue.SymAnnot> newTypeAnnots)Returns a type mirror that is equal to this instance but has different type annotations.Methods in net.sourceforge.pmd.lang.java.types that return types with arguments of type JTypeMirror Modifier and Type Method Description static List<JTypeMirror>TypeOps. asList(JTypeMirror t)Returns the components of t if it is an intersection type, otherwise returns t.static List<JTypeMirror>TypeOps. erase(Collection<? extends JTypeMirror> ts)Returns a list with the erasures of the given types, may be unmodifiable.List<JTypeMirror>JIntersectionType. getComponents()Returns the list of components.List<JTypeMirror>JMethodSig. getFormalParameters()Return the types of the formal parameters.Set<JTypeMirror>JPrimitiveType. getSuperTypeSet()default Set<JTypeMirror>JTypeMirror. getSuperTypeSet()Returns the set of (nominal) supertypes of this type.static Set<JTypeMirror>TypeOps. getSuperTypeSet(@NonNull JTypeMirror t)Returns the set of all supertypes of the given type.List<JTypeMirror>JMethodSig. getThrownExceptions()Return the list of thrown exception types.List<JTypeMirror>JClassType. getTypeArgs()A specific instantiation of the type variables inJClassType.getFormalTypeParams().static Set<JTypeMirror>TypeOps. mostSpecific(Collection<? extends JTypeMirror> set)Returns a subset S of the parameter, whose components have no strict supertype in S.static List<JTypeMirror>TypeOps. subst(List<? extends JTypeMirror> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Substitute on a list of types.Methods in net.sourceforge.pmd.lang.java.types with parameters of type JTypeMirror Modifier and Type Method Description static booleanTypeOps. areRelated(@NonNull JTypeMirror t, JTypeMirror s)Returns true if both types have a common supertype that is not Object.JArrayTypeTypeSystem. arrayType(@NonNull JTypeMirror component)LikeTypeSystem.arrayType(JTypeMirror, int), with one dimension.JTypeMirrorTypeSystem. arrayType(@NonNull JTypeMirror element, int numDimensions)Creates a new array type from an arbitrary element type.static @Nullable JClassTypeTypeOps. asClassType(@Nullable JTypeMirror t)Returns t if it is a class or interface type.static List<JTypeMirror>TypeOps. asList(JTypeMirror t)Returns the components of t if it is an intersection type, otherwise returns t.static JClassTypeTypeOps. asOuterSuper(JTypeMirror t, JClassSymbol sym)Return the base type of t or any of its outer types that starts with the given type.static @Nullable JTypeMirrorTypeOps. asSuper(@NonNull JTypeMirror t, @NonNull JClassSymbol s)static JTypeMirrorTypeConversion. binaryNumericPromotion(JTypeMirror t, JTypeMirror s)JLS§5.6.2 https://docs.oracle.com/javase/specs/jls/se9/html/jls-5.html#jls-5.6.2 Binary numeric promotion is performed on the operands of certain operators: The multiplicative operators *, /, and % (§15.17) The addition and subtraction operators for numeric types + and - (§15.18.2) The numerical comparison operators <, <=, >, and >= (§15.20.1) The numerical equality operators == and != (§15.21.1) The integer bitwise operators &, ^, and | (§15.22.1) In certain cases, the conditional operator ? : (§15.25)static JTypeMirrorTypeConversion. capture(JTypeMirror t)Perform capture conversion on the type t.JTypeVarJTypeVar. cloneWithBounds(JTypeMirror lower, JTypeMirror upper)static @Nullable JMethodSigTypeOps. findFunctionalInterfaceMethod(@Nullable JTypeMirror type)Finds the method of the given type that can be overridden as a lambda expression.static @Nullable JTypeMirrorTypeOps. getArrayComponent(@Nullable JTypeMirror t)static NameResolver<JVariableSig.FieldSig>TypeOps. getMemberFieldResolver(JTypeMirror c, @NonNull String accessPackageName, @Nullable JClassSymbol access, String name)static List<JMethodSig>TypeOps. getMethodsOf(JTypeMirror type, String name, boolean staticOnly, @NonNull JClassSymbol enclosing)static Set<JTypeMirror>TypeOps. getSuperTypeSet(@NonNull JTypeMirror t)Returns the set of all supertypes of the given type.static booleanTypeOps. hasUnresolvedSymbol(@Nullable JTypeMirror t)Return true if the argument is aJClassTypewith an unresolved symbol or aJArrayTypewhose element type matches the first criterion.static booleanTypeTestUtil. isA(@NonNull Class<?> clazz, @Nullable JTypeMirror type)Checks whether the given type of the node is a subtype of the first argument.static booleanTypeTestUtil. isA(@NonNull String canonicalName, @Nullable JTypeMirror thisType)static booleanTypeTestUtil. isA(@NonNull JTypeMirror t1, @Nullable TypeNode t2)static booleanTypeTestUtil. isA(@Nullable JTypeMirror t1, @NonNull JTypeMirror t2)Checks whether the second type is a subtype of the first.static TypeOps.ConvertibilityTypeOps. isConvertible(@NonNull JTypeMirror t, @NonNull JTypeMirror s)static TypeOps.ConvertibilityTypeOps. isConvertible(@NonNull JTypeMirror t, @NonNull JTypeMirror s, boolean capture)Returns whether ifT <: S, ie T is a subtype of S.static booleanTypeConversion. isConvertibleInCastContext(JTypeMirror t, JTypeMirror s)Is t convertible to s by boxing/unboxing conversion? Only t can undergo conversion.static TypeOps.ConvertibilityTypeOps. isConvertibleNoCapture(@NonNull JTypeMirror t, @NonNull JTypeMirror s)default TypeOps.ConvertibilityJTypeMirror. isConvertibleTo(@NonNull JTypeMirror other)Tests this type's convertibility to the other type.static booleanTypeConversion. isConvertibleUsingBoxing(JTypeMirror t, JTypeMirror s)Is t convertible to s by boxing/unboxing/widening conversion? Only t can undergo conversion.static booleanTypeTestUtil. isExactlyA(@NonNull Class<?> klass, @Nullable JTypeMirror type)static booleanTypeOps. isSameType(JTypeMirror t, JTypeMirror s)Return true if t and s are the same type, ignoring any type annotations appearing within them.static booleanTypeOps. isSameTypeInInference(JTypeMirror t, JTypeMirror s)Return true if t and s are the same type.static booleanTypeOps. isSameTypeWithSameAnnotations(JTypeMirror t, JTypeMirror s)Return true if t and s are the same type, considering any type annotations appearing within them.static booleanTypeOps. isSpecialUnresolved(@NonNull JTypeMirror t)static booleanTypeOps. isStrictSubtype(@NonNull JTypeMirror t, @NonNull JTypeMirror s)default booleanJTypeMirror. isSubtypeOf(@NonNull JTypeMirror other)Returns true if this type is the same type or a subtype of the given type.static booleanTypeOps. isUnresolved(@NonNull JTypeMirror t)Returns true if the type isTypeSystem.UNKNOWN,TypeSystem.ERROR, or its symbol is unresolved.static booleanTypeOps. isUnresolvedOrNull(@Nullable JTypeMirror t)static booleanTypeConversion. isWilcardParameterized(JTypeMirror t)Returns true if the type is a parameterized class type, which has wildcards as type arguments.static booleanTypeOps. overrides(JMethodSig m1, JMethodSig m2, JTypeMirror origin)Returns true if m1 overrides m2, when both are view as members of class origin.SubstitutionSubstitution. plus(SubstVar from, JTypeMirror to)Maps the given variable to the given type.static JTypeMirrorTypeOps. projectUpwards(JTypeMirror t)Returns the upwards projection of the given type, with respect to the set of capture variables that are found in it.JVariableSig.FieldSigTypeSystem. sigOf(JTypeMirror decl, JFieldSymbol fieldSym)static JTypeMirrorTypeOps. subst(@Nullable JTypeMirror type, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Replace the type variables occurring in the given type to their image by the given function.static JTypeMirrorTypeConversion. unaryNumericPromotion(JTypeMirror t)Performs Unary numeric promotion (JLS§5.6.1).RJTypeVisitor. visit(JTypeMirror t, P p)default RJTypeVisitor. visitNullType(JTypeMirror t, P p)default RJTypeVisitor. visitSentinel(JTypeMirror t, P p)Visit a sentinel type.JWildcardTypeTypeSystem. wildcard(boolean isUpperBound, @NonNull JTypeMirror bound)Builds a wildcard type with a single bound.JTypeVarJTypeVar. withUpperBound(@NonNull JTypeMirror newUB)Return a new type variable with the same underlying symbol or capture variable, but the upper bound is now the given type.Method parameters in net.sourceforge.pmd.lang.java.types with type arguments of type JTypeMirror Modifier and Type Method Description static booleanTypeOps. allArgsAreUnboundedWildcards(List<JTypeMirror> sargs)TypingContextTypingContext. andThen(Map<JVariableSymbol,@Nullable JTypeMirror> map)Return a new typing context which uses this one as a parent.static booleanTypeOps. areSameTypes(List<JTypeMirror> ts, List<JTypeMirror> ss)static booleanTypeOps. areSameTypesInInference(List<JTypeMirror> ts, List<JTypeMirror> ss)static List<JTypeMirror>TypeOps. erase(Collection<? extends JTypeMirror> ts)Returns a list with the erasures of the given types, may be unmodifiable.JTypeMirrorTypeSystem. glb(Collection<? extends JTypeMirror> types)Returns the greatest lower bound of the given set of types.JTypeMirrorTypeSystem. lub(Collection<? extends JTypeMirror> types)The least upper bound, or "lub", of a set of reference types is a shared supertype that is more specific than any other shared supertype (that is, no other shared supertype is a subtype of the least upper bound).static Set<JTypeMirror>TypeOps. mostSpecific(Collection<? extends JTypeMirror> set)Returns a subset S of the parameter, whose components have no strict supertype in S.@NonNull JTypeMirrorTypeSystem. parameterise(@NonNull JClassSymbol klass, @NonNull List<? extends JTypeMirror> typeArgs)Produce a parameterized type with the given symbol and type arguments.default JClassTypeJClassType. selectInner(JClassSymbol symbol, List<? extends JTypeMirror> targs)Select an inner type.JClassTypeJClassType. selectInner(JClassSymbol symbol, List<? extends JTypeMirror> targs, org.pcollections.PSet<SymbolicValue.SymAnnot> typeAnnotations)Select an inner type, with new type annotations.JArrayTypeJArrayType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)default JClassTypeJClassType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> fun)JIntersectionTypeJIntersectionType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)JMethodSigJMethodSig. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)JTypeMirrorJPrimitiveType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)JTypeMirrorJTypeMirror. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)JTypeVisitableJTypeVisitable. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Replace the type variables occurring in the given type by their image by the given function.JWildcardTypeJWildcardType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)default JTypeMirrorSubstVar. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)static JTypeMirrorTypeOps. subst(@Nullable JTypeMirror type, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Replace the type variables occurring in the given type to their image by the given function.static List<JTypeMirror>TypeOps. subst(List<? extends JTypeMirror> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Substitute on a list of types.static List<JTypeMirror>TypeOps. subst(List<? extends JTypeMirror> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)Substitute on a list of types.static List<JClassType>TypeOps. substClasses(List<JClassType> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)JTypeVarJTypeVar. substInBounds(Function<? super SubstVar,? extends @NonNull JTypeMirror> substitution)Likesubst(Function), except this typevar is not the subject of the substitution, only its bounds.static List<JTypeVar>TypeOps. substInBoundsOnly(List<JTypeVar> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)JClassTypeJClassType. withTypeArguments(List<? extends JTypeMirror> args)Returns another class type which has the same erasure, but new type arguments. -
Uses of JTypeMirror in net.sourceforge.pmd.lang.java.types.ast
Methods in net.sourceforge.pmd.lang.java.types.ast with parameters of type JTypeMirror Modifier and Type Method Description booleanExprContext. acceptsType(@NonNull JTypeMirror type)Returns true if the given type is compatible with this context implicitly (without cast). -
Uses of JTypeMirror in net.sourceforge.pmd.lang.java.types.internal.infer
Classes in net.sourceforge.pmd.lang.java.types.internal.infer that implement JTypeMirror Modifier and Type Class Description classInferenceVarRepresents an inference variable.Methods in net.sourceforge.pmd.lang.java.types.internal.infer that return JTypeMirror Modifier and Type Method Description default @Nullable JTypeMirrorExprMirror.InvocationMirror. getErasedReceiverType()Returns the erased receiver type.@Nullable JTypeMirrorExprMirror. getInferredType()Return the value set in the last call toExprMirror.setInferredType(JTypeMirror).@Nullable JTypeMirrorExprMirror.MethodRefMirror. getLhsIfType()Returns the type of the left hand-side, if it is not an expression.@NonNull JTypeMirrorExprMirror.CtorInvocationMirror. getNewType()Return the type name being instantiated.@Nullable JTypeMirrorExprMirror.InvocationMirror. getReceiverType()Returns the erased receiver type.@Nullable JTypeMirrorExprMirror. getStandaloneType()If this expression is of a standalone form, returns the type of the expression.default @Nullable JTypeMirrorExprMirror.PolyExprMirror. getStandaloneType()JTypeMirrorExprMirror.MethodRefMirror. getTypeToSearch()Returns the type to search as defined by the first section of JLS§15.13.1 , except it may also return an array type (the jls makes an exception for it, while we don't).JTypeMirrorExprMirror.InvocationMirror.MethodCtDecl. ithFormalParam(int i)JTypeMirrorInferenceVar. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)default @Nullable JTypeMirrorExprMirror.PolyExprMirror. unresolvedType()If inference failed to determine the type of this node, returns a fallback for it.JTypeMirrorInferenceVar. withAnnotations(org.pcollections.PSet<SymbolicValue.SymAnnot> newTypeAnnots)Methods in net.sourceforge.pmd.lang.java.types.internal.infer that return types with arguments of type JTypeMirror Modifier and Type Method Description @Nullable List<JTypeMirror>ExprMirror.LambdaExprMirror. getExplicitParameterTypes()Returns the types of the explicit parameters.List<JTypeMirror>ExprMirror.InvocationMirror. getExplicitTypeArguments()Returns the explicit type arguments, eg inArrays.<String>asList("q"), ornew <String> Foo("q").@NonNull List<JTypeMirror>ExprMirror.MethodRefMirror. getExplicitTypeArguments()Returns the explicit type arguments (the ones to the right of the "::").Methods in net.sourceforge.pmd.lang.java.types.internal.infer with parameters of type JTypeMirror Modifier and Type Method Description voidInferenceVar. addBound(InferenceVar.BoundKind kind, JTypeMirror type)Adds a new bound on this variable.voidInferenceVar. addPrimaryBound(InferenceVar.BoundKind kind, JTypeMirror type)default voidTypeInferenceLogger. boundAdded(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext ctx, InferenceVar var, InferenceVar.BoundKind kind, JTypeMirror bound, boolean isSubstitution)voidTypeInferenceLogger.VerboseLogger. boundAdded(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext ctx, InferenceVar ivar, InferenceVar.BoundKind kind, JTypeMirror bound, boolean isSubstitution)static Collector<JMethodSig,?,List<JMethodSig>>OverloadSet. collectMostSpecific(JTypeMirror commonSubtype)Returns a collector that can apply to a stream of method signatures, and that collects them into a set of method, where none override one another.default voidExprMirror. finishStandaloneInference(@NonNull JTypeMirror standaloneType)For a standalone expr, finish type inference by computing properties that are guarded by the type res lock.StringInferenceVar.BoundKind. format(JTypeMirror ivar, JTypeMirror bound)default voidTypeInferenceLogger. functionalExprNeedsInvocationCtx(JTypeMirror targetT, ExprMirror expr)voidTypeInferenceLogger.VerboseLogger. functionalExprNeedsInvocationCtx(JTypeMirror targetT, ExprMirror expr)Iterable<JMethodSig>ExprMirror.CtorInvocationMirror. getAccessibleCandidates(JTypeMirror newType)Returns the accessible candidates for this node, as ifExprMirror.CtorInvocationMirror.getNewType()returned the type passed as parameter.static ExprMirror.TypeSpeciesExprMirror.TypeSpecies. getSpecies(JTypeMirror t)booleanInferenceVar. isEquivalentTo(JTypeMirror t)booleanInferenceVar. isSubtypeNoSideEffect(@NonNull JTypeMirror other)booleanInferenceVar. isSupertypeNoSideEffect(@NonNull JTypeMirror other)default voidTypeInferenceLogger. ivarInstantiated(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext ctx, InferenceVar var, JTypeMirror inst)voidTypeInferenceLogger.VerboseLogger. ivarInstantiated(net.sourceforge.pmd.lang.java.types.internal.infer.InferenceContext ctx, InferenceVar var, JTypeMirror inst)MethodCallSiteInfer. newCallSite(ExprMirror.InvocationMirror expr, @Nullable JTypeMirror expectedType)PolySite<ExprMirror.FunctionalExprMirror>Infer. newFunctionalSite(ExprMirror.FunctionalExprMirror mirror, @Nullable JTypeMirror expectedType)protected @NonNull StringTypeInferenceLogger.SimpleLogger. ppBound(InferenceVar ivar, InferenceVar.BoundKind kind, JTypeMirror bound)voidExprMirror.FunctionalExprMirror. setInferredType(@Nullable JTypeMirror mirror)For a method ref or lambda, this is the type of the functional interface.voidExprMirror. setInferredType(JTypeMirror mirror)Set the type of the underlying ast node.default voidTypeInferenceLogger. startArg(int i, ExprMirror expr, JTypeMirror formal)voidTypeInferenceLogger.VerboseLogger. startArg(int i, ExprMirror expr, JTypeMirror formalType)Method parameters in net.sourceforge.pmd.lang.java.types.internal.infer with type arguments of type JTypeMirror Modifier and Type Method Description JTypeMirrorInferenceVar. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
-