Uses of Interface
net.sourceforge.pmd.lang.java.types.JClassType
Packages that use JClassType
Package
Description
Contains the classes and interfaces modelling the Java AST.
The new symbol resolution framework
that inter-operates cleanly with type resolution.
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 JClassTypeModifier and TypeMethodDescription@NonNull JClassTypeASTAnnotation.getTypeMirror()@NonNull JClassTypeASTTypeDeclaration.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 JClassTypeModifier and TypeMethodDescription@Nullable JClassTypeJClassSymbol.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 JClassTypeModifier and TypeMethodDescriptionJClassSymbol.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 JClassTypeModifier and TypeFieldDescriptionfinal JClassTypeTypeSystem.BOXED_VOIDThis is the boxed type ofVoid.class, not to be confused withvoid.class, which in this framework is represented byTypeSystem.NO_TYPE.final JClassTypeTypeSystem.CLONEABLEThe interface Cloneable.final JClassTypeTypeSystem.OBJECTTop type of the reference type system.final JClassTypeTypeSystem.SERIALIZABLEThe interface Serializable.Methods in net.sourceforge.pmd.lang.java.types that return JClassTypeModifier and TypeMethodDescriptionstatic @Nullable JClassTypeTypeOps.asClassType(@Nullable JTypeMirror t) Returns t if it is a class or interface type.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.JPrimitiveType.box()static JClassTypeTypeConversion.capture(JClassType type) Perform capture conversion on the type t.default @Nullable JClassTypeJClassType.getAsSuper(@NonNull JClassSymbol symbol) @Nullable JClassTypeJClassType.getDeclaredClass(String simpleName) Return the nested class with the given name, or null if there is none.@Nullable JClassTypeJClassType.getEnclosingType()Returns the type immediately enclosing this type.JClassType.getErasure()JClassType.getGenericTypeDeclaration()If this type is generic, returns the type that represents its generic type declaration.@Nullable JClassTypeJIntersectionType.getInducedClassType()Every intersection type induces a notional class or interface for the purpose of identifying its members.static @Nullable JClassTypeTypeOps.getReceiverType(@NonNull JClassType containerType, JClassSymbol sym) Return the first enclosing type of the container type that has the given symbol in its supertypes.@Nullable JClassTypeJClassType.getSuperClass()Returns the generic superclass type.static @Nullable JClassTypeTypeOps.nonWildcardParameterization(@NonNull JClassType type) Returns the non-wildcard parameterization of the given functional interface type.default JClassTypeJClassType.selectInner(JClassSymbol symbol, List<? extends JTypeMirror> targs) Select an inner type.JClassType.selectInner(JClassSymbol symbol, List<? extends JTypeMirror> targs, org.pcollections.PSet<SymbolicValue.SymAnnot> typeAnnotations) Select an inner type, with new type annotations.default JClassTypeJClassType.subst(Function<? super SubstVar, ? extends @NonNull JTypeMirror> fun) JClassType.withAnnotations(org.pcollections.PSet<SymbolicValue.SymAnnot> newTypeAnnots) 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 JClassTypeModifier and TypeMethodDescriptionJClassType.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.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 JClassTypeModifier and TypeMethodDescriptionstatic JClassTypeTypeConversion.capture(JClassType type) Perform capture conversion on the type t.static @Nullable JClassTypeTypeOps.getReceiverType(@NonNull JClassType containerType, JClassSymbol sym) Return the first enclosing type of the container type that has the given symbol in its supertypes.static @Nullable JClassTypeTypeOps.nonWildcardParameterization(@NonNull JClassType type) Returns the non-wildcard parameterization of the given functional interface type.TypeSystem.sigOf(JClassType decl, JFormalParamSymbol fieldSym) TypeSystem.sigOf(JClassType decl, JLocalVariableSymbol fieldSym) default RJTypeVisitor.visitClass(JClassType t, P p) Method parameters in net.sourceforge.pmd.lang.java.types with type arguments of type JClassTypeModifier and TypeMethodDescriptionstatic List<JClassType>TypeOps.substClasses(List<JClassType> ts, Function<? super SubstVar, ? extends @NonNull JTypeMirror> subst)