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 The new symbol resolution framework that inter-operates cleanly with type resolution.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 -
-
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 JTypeMirrorASTVariableId. getTypeMirror()Returns the type of the declared variable.@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.default JTypeMirrorJConstructorSymbol. getReturnType(Substitution subst)default JTypeMirrorJExecutableSymbol. getReturnType(Substitution subst)Return the return type under the given substitution.JTypeMirrorJRecordComponentSymbol. getTypeMirror(Substitution substitution)Returns the type of this value, 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.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 !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.static JTypeMirrorTypeOps. getMemberSource(JTypeMirror t)Methods and fields of a type variable come from its upper bound, which must be captured.@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.@Nullable JTypeMirrorOverloadSelectionResult. getTypeToSearch()Return the type from which the search for accessible candidates for overload resolution starts.@NonNull JTypeMirrorJTypeVar. getUpperBound()Gets the upper bound.JTypeMirrorTypeSystem. glb(Collection<? extends JTypeMirror> types)Returns the greatest lower bound of the given set of types.default JTypeMirrorJMethodSig. ithFormalParam(int i, boolean varargs)Returns the type of the i-th formal parameter of the method.default 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 @Nullable 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 !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 JTypeMirrorTypeOps. getMemberSource(JTypeMirror t)Methods and fields of a type variable come from its upper bound, which must be captured.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.static booleanTypeOps. hasUnresolvedSymbolOrArray(@Nullable JTypeMirror t)Return true if the argument is aJClassTypewith an unresolved symbol, or an array whose element type has an unresolved symbol.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)Deprecated.static booleanTypeConversion. isConvertibleInCastContext(JTypeMirror t, JTypeMirror s)Is t convertible to s by boxing/unboxing conversion?static TypeOps.ConvertibilityTypeOps. isConvertibleNoCapture(@NonNull JTypeMirror t, @NonNull JTypeMirror s)static TypeOps.ConvertibilityTypeOps. isConvertiblePure(JTypeMirror t, 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?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 booleanInternalApiBridge. isSameTypeInInference(JTypeMirror t, JTypeMirror s)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)Returns true if the type isTypeSystem.UNKNOWN, orTypeSystem.ERROR.static booleanTypeOps. isSpecialUnresolvedOrArray(@Nullable JTypeMirror t)Returns true if the type isTypeSystem.UNKNOWN, orTypeSystem.ERROR, or an array of such types.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 a class type with unresolved symbol.static booleanTypeOps. isUnresolvedOrArray(@NonNull JTypeMirror t)Returns true if the type isTypeSystem.UNKNOWN, orTypeSystem.ERROR, or a class type with unresolved symbol, or an array of such types.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. m1 and m2 may be declared in supertypes of origin, possibly unrelated (default methods), which is why we need that third parameter.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)Deprecated.Since 7.12.0.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)LikeSubstVar.subst(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 that return JTypeMirror Modifier and Type Method Description @Nullable JTypeMirrorExprContext. getPolyTargetType(boolean lambdaOrMethodRef)Returns the target type bestowed by this context ON A POLY EXPRESSION.abstract @Nullable JTypeMirrorExprContext. getTargetType()Returns the target type, or null if there is none.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).static ExprContextInternalApiBridge. newOtherContext(@NonNull JTypeMirror targetType, ExprContext.ExprContextKind kind)
-