Class JLabelSymbol
java.lang.Object
org.sonar.java.model.Symbols.DefaultSymbol
org.sonar.java.model.JLabelSymbol
- All Implemented Interfaces:
Symbol,Symbol.LabelSymbol
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.semantic.Symbol
Symbol.LabelSymbol, Symbol.MethodSymbol, Symbol.TypeSymbol, Symbol.VariableSymbol -
Field Summary
Fields inherited from interface org.sonar.plugins.java.api.semantic.Symbol
ROOT_PACKAGE, UNKNOWN_SYMBOL -
Method Summary
Methods inherited from class org.sonar.java.model.Symbols.DefaultSymbol
isAbstract, isDeprecated, isEnum, isFinal, isInterface, isMethodSymbol, isPackageSymbol, isPackageVisibility, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isVariableSymbol, isVolatile, metadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.java.api.semantic.Symbol
isLocalVariable, isParameter
-
Method Details
-
name
-
declaration
Description copied from interface:SymbolDeclaration node of this symbol. Currently, only works for declaration within the same file.- Specified by:
declarationin interfaceSymbol- Specified by:
declarationin interfaceSymbol.LabelSymbol- Returns:
- the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.
-
usages
Description copied from interface:SymbolThe identifier trees that reference this symbol.- Specified by:
usagesin interfaceSymbol- Specified by:
usagesin interfaceSymbol.LabelSymbol- Returns:
- a list of IdentifierTree referencing this symbol. An empty list if this symbol is unused.
-
owner
-
type
-
isUnknown
-
enclosingClass
Description copied from interface:SymbolThe closest enclosing class.- Specified by:
enclosingClassin interfaceSymbol- Returns:
- null for package symbols, themselves for type symbol and enclosing class of methods or variables.
-