Uses of Interface
net.sourceforge.pmd.lang.java.types.SubstVar
-
Packages that use SubstVar Package Description net.sourceforge.pmd.lang.java.types Support for compile-time type resolution on the AST. -
-
Uses of SubstVar in net.sourceforge.pmd.lang.java.types
Subinterfaces of SubstVar in net.sourceforge.pmd.lang.java.types Modifier and Type Interface Description interface
JTypeVar
The type of a type variable.Methods in net.sourceforge.pmd.lang.java.types with parameters of type SubstVar Modifier and Type Method Description @NonNull JTypeMirror
Substitution. apply(@NonNull SubstVar var)
Returns the type with which the given variable should be replaced.Substitution
Substitution. plus(SubstVar from, JTypeMirror to)
Maps the given variable to the given type.Method parameters in net.sourceforge.pmd.lang.java.types with type arguments of type SubstVar Modifier and Type Method Description static Substitution
Substitution. mapping(List<? extends SubstVar> from, List<? extends JTypeMirror> to)
Builds a substitution where the mapping from vars to types is defined by the correspondence between the two lists.static boolean
TypeOps. mentionsAny(JTypeVisitable t, Collection<? extends SubstVar> vars)
JArrayType
JArrayType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
default JClassType
JClassType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> fun)
JIntersectionType
JIntersectionType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
JMethodSig
JMethodSig. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
JTypeMirror
JPrimitiveType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
JTypeMirror
JTypeMirror. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
JTypeVisitable
JTypeVisitable. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
Replace the type variables occurring in the given type by their image by the given function.JWildcardType
JWildcardType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
default JTypeMirror
SubstVar. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
static JTypeMirror
TypeOps. 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<JClassType>
TypeOps. substClasses(List<JClassType> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
JTypeVar
JTypeVar. 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)
-