Uses of Interface
net.sourceforge.pmd.lang.java.symbols.JClassSymbol
Packages that use JClassSymbol
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 JClassSymbol in net.sourceforge.pmd.lang.java.ast
Methods in net.sourceforge.pmd.lang.java.ast that return JClassSymbol -
Uses of JClassSymbol in net.sourceforge.pmd.lang.java.symbols
Methods in net.sourceforge.pmd.lang.java.symbols that return JClassSymbolModifier and TypeMethodDescription@NonNull JClassSymbolSymbolicValue.SymAnnot.getAnnotationSymbol()Return the symbol for the declaring class of the annotation.default @Nullable JClassSymbolJClassSymbol.getDeclaredClass(String name) Returns a class with the given name defined in this class.@Nullable JClassSymbolJAccessibleElementSymbol.getEnclosingClass()Returns the class that directly encloses this declaration.@NonNull JClassSymbolJExecutableSymbol.getEnclosingClass()Returns the class symbol declaring this method or constructor.@NonNull JClassSymbolJFieldSymbol.getEnclosingClass()@NonNull JClassSymbolJRecordComponentSymbol.getEnclosingClass()default @NonNull JClassSymbolJTypeParameterSymbol.getEnclosingClass()default @NonNull JClassSymbolJClassSymbol.getNestRoot()Returns the toplevel class containing this class.@Nullable JClassSymbolJClassSymbol.getSuperclass()Returns the superclass symbol if it exists.@Nullable JClassSymbolSymbolResolver.resolveClassFromBinaryName(@NonNull String binaryName) Resolves a class symbol from its canonical name.default @Nullable JClassSymbolSymbolResolver.resolveClassFromCanonicalName(@NonNull String canonicalName) Resolves a class symbol from its canonical name.Methods in net.sourceforge.pmd.lang.java.symbols that return types with arguments of type JClassSymbolModifier and TypeMethodDescriptionJClassSymbol.getDeclaredClasses()Returns the member classes declared directly in this class.default List<JClassSymbol>JClassSymbol.getPermittedSubtypes()Return the list of permitted subclasses or subinterfaces, as defined in thepermitsclause of a sealed class or interface.JClassSymbol.getSuperInterfaces()Returns the direct super-interfaces of this class or interface symbol.Methods in net.sourceforge.pmd.lang.java.symbols with parameters of type JClassSymbolModifier and TypeMethodDescriptiondefault RSymbolVisitor.visitArray(JClassSymbol sym, JTypeDeclSymbol component, P param) Delegates tovisitClass.default RSymbolVisitor.visitClass(JClassSymbol sym, P param) Delegates tovisitTypeDecl. -
Uses of JClassSymbol in net.sourceforge.pmd.lang.java.types
Methods in net.sourceforge.pmd.lang.java.types that return JClassSymbolModifier and TypeMethodDescription@Nullable JClassSymbolTypeSystem.getClassSymbol(@Nullable Class<?> clazz) Returns the class symbol for the given reflected class.@Nullable JClassSymbolTypeSystem.getClassSymbol(String binaryName) Returns a symbol for the binary name.@Nullable JClassSymbolTypeSystem.getClassSymbolFromCanonicalName(String canonicalName) Returns a symbol for the canonical name.@NonNull JClassSymbolJArrayType.getSymbol()@NonNull JClassSymbolJClassType.getSymbol()@NonNull JClassSymbolJPrimitiveType.getSymbol()Returns the type of the primitive class, egInteger.TYPE.static @Nullable JClassSymbolTypesFromReflection.loadSymbol(TypeSystem ctr, String className) Methods in net.sourceforge.pmd.lang.java.types with parameters of type JClassSymbolModifier and TypeMethodDescriptionstatic Predicate<JMethodSymbol>TypeOps.accessibleMethodFilter(String name, @NonNull JClassSymbol symbol) 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) TypeSystem.declaration(@Nullable JClassSymbol klass) LikeTypeSystem.typeOf(JTypeDeclSymbol, boolean), defaulting the erased parameter to false.static List<JMethodSig>TypeOps.filterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite) default @Nullable JClassTypeJClassType.getAsSuper(@NonNull JClassSymbol symbol) 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.static NameResolver<JVariableSig.FieldSig>TypeOps.getMemberFieldResolver(JTypeMirror c, @NonNull String accessPackageName, @Nullable JClassSymbol access, String name) static List<JMethodSig>TypeOps.getMethodsOf(JTypeMirror type, String name, boolean staticOnly, @NonNull JClassSymbol enclosing) 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 Iterable<JMethodSig>TypeOps.lazyFilterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite) @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.JClassType.selectInner(JClassSymbol symbol, List<? extends JTypeMirror> targs, org.pcollections.PSet<SymbolicValue.SymAnnot> typeAnnotations) Select an inner type, with new type annotations.