Interface JLocalVariableSymbol
- All Superinterfaces:
AnnotableSymbol
,JElementSymbol
,JVariableSymbol
- All Known Subinterfaces:
JFormalParamSymbol
Represents all use cases of
ASTVariableId
except field declarations.
Method formal parameter symbols extend this interface.- Since:
- 7.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R,
P> R acceptVisitor
(SymbolVisitor<R, P> visitor, P param) Dispatch to the appropriate visit method of the visitor and returns its result.default ASTVariableId
Returns the node that declares this symbol.Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.AnnotableSymbol
getDeclaredAnnotation, getDeclaredAnnotations, isAnnotationPresent
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JElementSymbol
equals, getSimpleName, getTypeSystem, isUnresolved, nameEquals
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JVariableSymbol
getTypeMirror, isField, isFinal
-
Method Details
-
acceptVisitor
Description copied from interface:JElementSymbol
Dispatch to the appropriate visit method of the visitor and returns its result.- Specified by:
acceptVisitor
in interfaceJElementSymbol
-
tryGetNode
Description copied from interface:JElementSymbol
Returns the node that declares this symbol. Eg forJMethodSymbol
, it's anASTMethodDeclaration
. Will only return non-null if the symbol is declared in the file currently being analysed.- Specified by:
tryGetNode
in interfaceJElementSymbol
-