Interface Symbol.VariableSymbol
-
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
Modifier and TypeMethodDescriptionDeclaration node of this symbol.boolean
Methods inherited from interface org.sonar.plugins.java.api.semantic.Symbol
enclosingClass, isAbstract, isDeprecated, isEnum, isFinal, isInterface, isLocalVariable, isMethodSymbol, isPackageSymbol, isPackageVisibility, isParameter, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isUnknown, isVariableSymbol, isVolatile, metadata, name, owner, type, usages
-
Method Details
-
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.
-
isEffectivelyFinal
boolean isEffectivelyFinal()- Returns:
- true if this variable is effectively final. A variable is effectively final if it is not explicitly declared final but never reassigned after initialization.
-
constantValue
-