Interface Symbol.VariableSymbol
- All Superinterfaces:
Symbol
- Enclosing interface:
Symbol
Symbol for field, method parameters and local variables.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Symbol
Symbol.LabelSymbol, Symbol.MethodSymbol, Symbol.TypeSymbol, Symbol.VariableSymbolModifier and TypeInterfaceDescriptionstatic interfaceLabel symbol.static interfaceSymbol for methods.static interfaceSymbol for a type : class, enum, interface or annotation.static interfaceSymbol for field, method parameters and local variables. -
Field Summary
Fields inherited from interface Symbol
ROOT_PACKAGE, UNKNOWN_SYMBOL -
Method Summary
Modifier and TypeMethodDescriptionDeclaration node of this symbol.booleanMethods inherited from interface Symbol
enclosingClass, isAbstract, isDeprecated, isEnum, isFinal, isInterface, isLocalVariable, isMethodSymbol, isPackageSymbol, isPackageVisibility, isParameter, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isUnknown, isVariableSymbol, isVolatile, metadata, name, owner, type, usagesModifier and TypeMethodDescriptionThe closest enclosing class.booleanbooleanbooleanisEnum()booleanisFinal()booleandefault booleanbooleanbooleanbooleandefault booleanbooleanbooleanbooleanisPublic()booleanisStatic()booleanbooleanbooleanbooleanmetadata()Symbol metadata informations, annotations for instance.name()Name of this symbol.owner()The owner of this symbol.type()Type of symbol.usages()The identifier trees that reference this symbol.
-
Method Details
-
declaration
Description copied from interface:SymbolDeclaration node of this symbol. Currently, only works for declaration within the same file.- Specified by:
declarationin 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
-