Uses of Interface
net.sourceforge.pmd.lang.java.symbols.JClassSymbol
-
Packages that use JClassSymbol Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.symbols Prototype of a new symbol resolution framework that inter-operates cleanly with type resolution.net.sourceforge.pmd.lang.java.symbols.internal.asm net.sourceforge.pmd.lang.java.types 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 Modifier and Type Method Description @NonNull JClassSymbol
ASTAnyTypeDeclaration. getSymbol()
-
Uses of JClassSymbol in net.sourceforge.pmd.lang.java.symbols
Methods in net.sourceforge.pmd.lang.java.symbols that return JClassSymbol Modifier and Type Method Description @NonNull JClassSymbol
SymbolicValue.SymAnnot. getAnnotationSymbol()
Return the symbol for the declaring class of the annotation.default @Nullable JClassSymbol
JClassSymbol. getDeclaredClass(String name)
Returns a class with the given name defined in this class.@Nullable JClassSymbol
JAccessibleElementSymbol. getEnclosingClass()
Returns the class that directly encloses this declaration.@NonNull JClassSymbol
JExecutableSymbol. getEnclosingClass()
Returns the class symbol declaring this method or constructor.@NonNull JClassSymbol
JFieldSymbol. getEnclosingClass()
default @NonNull JClassSymbol
JTypeParameterSymbol. getEnclosingClass()
default @NonNull JClassSymbol
JClassSymbol. getNestRoot()
Returns the toplevel class containing this class.@Nullable JClassSymbol
JClassSymbol. getSuperclass()
Returns the superclass symbol if it exists.@Nullable JClassSymbol
SymbolResolver. resolveClassFromBinaryName(@NonNull String binaryName)
Resolves a class symbol from its canonical name.default @Nullable JClassSymbol
SymbolResolver. 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 JClassSymbol Modifier and Type Method Description List<JClassSymbol>
JClassSymbol. getDeclaredClasses()
Returns the member classes declared directly in this class.List<JClassSymbol>
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 JClassSymbol Modifier and Type Method Description default R
SymbolVisitor. visitArray(JClassSymbol sym, JTypeDeclSymbol component, P param)
Delegates tovisitClass
.default R
SymbolVisitor. visitClass(JClassSymbol sym, P param)
Delegates tovisitTypeDecl
. -
Uses of JClassSymbol in net.sourceforge.pmd.lang.java.symbols.internal.asm
Methods in net.sourceforge.pmd.lang.java.symbols.internal.asm that return JClassSymbol Modifier and Type Method Description @Nullable JClassSymbol
AsmSymbolResolver. resolveClassFromBinaryName(@NonNull String binaryName)
-
Uses of JClassSymbol in net.sourceforge.pmd.lang.java.types
Methods in net.sourceforge.pmd.lang.java.types that return JClassSymbol Modifier and Type Method Description @Nullable JClassSymbol
TypeSystem. getClassSymbol(@Nullable Class<?> clazz)
Returns the class symbol for the given reflected class.@Nullable JClassSymbol
TypeSystem. getClassSymbol(String binaryName)
Returns a symbol for the binary name.@Nullable JClassSymbol
TypeSystem. getClassSymbolFromCanonicalName(String canonicalName)
Returns a symbol for the canonical name.@NonNull JClassSymbol
JArrayType. getSymbol()
@NonNull JClassSymbol
JClassType. getSymbol()
@NonNull JClassSymbol
JPrimitiveType. getSymbol()
Returns the type of the primitive class, egInteger.TYPE
.static @Nullable JClassSymbol
TypesFromReflection. loadSymbol(TypeSystem ctr, String className)
Methods in net.sourceforge.pmd.lang.java.types with parameters of type JClassSymbol Modifier and Type Method Description static Predicate<JMethodSymbol>
TypeOps. accessibleMethodFilter(String name, @NonNull JClassSymbol symbol)
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.static @Nullable JTypeMirror
TypeOps. asSuper(@NonNull JTypeMirror t, @NonNull JClassSymbol s)
JTypeMirror
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 JClassType
JClassType. getAsSuper(@NonNull JClassSymbol symbol)
default @Nullable JTypeMirror
JTypeMirror. 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 Iterable<JMethodSig>
TypeOps. lazyFilterAccessible(List<JMethodSig> visible, @NonNull JClassSymbol accessSite)
@NonNull JTypeMirror
TypeSystem. parameterise(@NonNull JClassSymbol klass, @NonNull List<? extends JTypeMirror> typeArgs)
Produce a parameterized type with the given symbol and type arguments.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.
-