Interface Symbol.VariableSymbol
-
- All Superinterfaces:
Symbol
- All Known Implementing Classes:
JavaSymbol.VariableJavaSymbol
- Enclosing interface:
- Symbol
public static interface Symbol.VariableSymbol extends Symbol
Symbol for field, method parameters and local variables.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.semantic.Symbol
Symbol.LabelSymbol, Symbol.MethodSymbol, Symbol.TypeSymbol, Symbol.VariableSymbol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VariableTree
declaration()
Declaration node of this symbol.-
Methods inherited from interface org.sonar.plugins.java.api.semantic.Symbol
enclosingClass, isAbstract, isDeprecated, isEnum, isFinal, isInterface, isMethodSymbol, isPackageSymbol, isPackageVisibility, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isUnknown, isVariableSymbol, isVolatile, metadata, name, owner, type, usages
-
-
-
-
Method Detail
-
declaration
@Nullable VariableTree declaration()
Description copied from interface:Symbol
Declaration node of this symbol. Currently, only works for declaration within the same file.- Specified by:
declaration
in interfaceSymbol
- Returns:
- the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.
-
-