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 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 JClassType Modifier and Type Method Description @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 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 JClassTypeTypeSystem. BOXED_VOIDThis is the boxed type ofVoid.class, not to be confused withvoid.class, which in this framework is represented byTypeSystem.NO_TYPE.JClassTypeTypeSystem. CLONEABLEThe interface Cloneable.JClassTypeTypeSystem. OBJECTTop type of the reference type system.JClassTypeTypeSystem. SERIALIZABLEThe interface Serializable.Methods in net.sourceforge.pmd.lang.java.types that return JClassType Modifier and Type Method Description static @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.JClassTypeJPrimitiveType. 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.JClassTypeJClassType. getErasure()JClassTypeJClassType. 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.JClassTypeJClassType. 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)JClassTypeJClassType. withAnnotations(org.pcollections.PSet<SymbolicValue.SymAnnot> newTypeAnnots)JClassTypeJClassType. 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 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.JVariableSigTypeSystem. sigOf(JClassType decl, JFormalParamSymbol fieldSym)JVariableSigTypeSystem. 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 JClassType Modifier and Type Method Description static List<JClassType>TypeOps. substClasses(List<JClassType> ts, Function<? super SubstVar,? extends @NonNull JTypeMirror> subst)
-