Uses of Interface
net.sourceforge.pmd.lang.java.types.JClassType
-
Packages that use JClassType 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.types Support for compile-time type resolution on the AST. -
-
Uses of JClassType in net.sourceforge.pmd.lang.java.ast
Methods in net.sourceforge.pmd.lang.java.ast that return JClassType Modifier and Type Method Description @NonNull JClassType
ASTAnnotation. getTypeMirror()
@NonNull JClassType
ASTTypeDeclaration. getTypeMirror()
Returns the generic type declaration of the declared type. -
Uses of JClassType in net.sourceforge.pmd.lang.java.symbols
Methods in net.sourceforge.pmd.lang.java.symbols that return JClassType Modifier and Type Method Description @Nullable JClassType
JClassSymbol. getSuperclassType(Substitution substitution)
Returns the superclass type, under the given substitution.Methods in net.sourceforge.pmd.lang.java.symbols that return types with arguments of type JClassType Modifier and Type Method Description List<JClassType>
JClassSymbol. getSuperInterfaceTypes(Substitution substitution)
Returns the list of super interface types, under the given substitution. -
Uses of JClassType in net.sourceforge.pmd.lang.java.types
Fields in net.sourceforge.pmd.lang.java.types declared as JClassType Modifier and Type Field Description JClassType
TypeSystem. BOXED_VOID
This is the boxed type ofVoid.class
, not to be confused withvoid.class
, which in this framework is represented byTypeSystem.NO_TYPE
.JClassType
TypeSystem. CLONEABLE
The interface Cloneable.JClassType
TypeSystem. OBJECT
Top type of the reference type system.JClassType
TypeSystem. SERIALIZABLE
The interface Serializable.Methods in net.sourceforge.pmd.lang.java.types that return JClassType Modifier and Type Method Description static @Nullable JClassType
TypeOps. asClassType(@Nullable JTypeMirror t)
Returns t if it is a class or interface type.static JClassType
TypeOps. asOuterSuper(JTypeMirror t, JClassSymbol sym)
Return the base type of t or any of its outer types that starts with the given type.JClassType
JPrimitiveType. box()
static JClassType
TypeConversion. capture(JClassType type)
Perform capture conversion on the type t.default @Nullable JClassType
JClassType. getAsSuper(@NonNull JClassSymbol symbol)
@Nullable JClassType
JClassType. getDeclaredClass(String simpleName)
Return the nested class with the given name, or null if there is none.@Nullable JClassType
JClassType. getEnclosingType()
Returns the type immediately enclosing this type.JClassType
JClassType. getErasure()
JClassType
JClassType. getGenericTypeDeclaration()
If this type is generic, returns the type that represents its generic type declaration.@Nullable JClassType
JIntersectionType. getInducedClassType()
Every intersection type induces a notional class or interface for the purpose of identifying its members.@Nullable JClassType
JClassType. getSuperClass()
Returns the generic superclass type.static @Nullable JClassType
TypeOps. nonWildcardParameterization(@NonNull JClassType type)
Returns the non-wildcard parameterization of the given functional interface type.default JClassType
JClassType. selectInner(JClassSymbol symbol, List<? extends JTypeMirror> targs)
Select an inner type.JClassType
JClassType. selectInner(JClassSymbol symbol, List<? extends JTypeMirror> targs, org.pcollections.PSet<SymbolicValue.SymAnnot> typeAnnotations)
Select an inner type, with new type annotations.default JClassType
JClassType. subst(Function<? super SubstVar,? extends @NonNull JTypeMirror> fun)
JClassType
JClassType. withAnnotations(org.pcollections.PSet<SymbolicValue.SymAnnot> newTypeAnnots)
JClassType
JClassType. withTypeArguments(List<? extends JTypeMirror> args)
Returns another class type which has the same erasure, but new type arguments.Methods in net.sourceforge.pmd.lang.java.types that return types with arguments of type JClassType Modifier and Type Method Description List<JClassType>
JClassType. getDeclaredClasses()
Return the list of declared nested classes.@NonNull List<JClassType>
JIntersectionType. getInterfaces()
Returns all additional bounds on the primary bound, which are necessarily interface types.List<JClassType>
JClassType. getSuperInterfaces()
Return the list of interface types directly implemented by this type.static List<JClassType>
TypeOps. substClasses(List<JClassType> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
Methods in net.sourceforge.pmd.lang.java.types with parameters of type JClassType Modifier and Type Method Description static JClassType
TypeConversion. capture(JClassType type)
Perform capture conversion on the type t.static @Nullable JClassType
TypeOps. nonWildcardParameterization(@NonNull JClassType type)
Returns the non-wildcard parameterization of the given functional interface type.JVariableSig
TypeSystem. sigOf(JClassType decl, JFormalParamSymbol fieldSym)
JVariableSig
TypeSystem. sigOf(JClassType decl, JLocalVariableSymbol fieldSym)
default R
JTypeVisitor. visitClass(JClassType t, P p)
Method parameters in net.sourceforge.pmd.lang.java.types with type arguments of type JClassType Modifier and Type Method Description static List<JClassType>
TypeOps. substClasses(List<JClassType> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
-