Package org.sonar.java.model
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 -
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
Description copied from interface:Symbol.LabelSymbolName of that label.- Specified by:
namein interfaceSymbol- Specified by:
namein interfaceSymbol.LabelSymbol- Returns:
- simple name of the symbol.
-
declaration
Description copied from interface:Symbol.LabelSymbolDeclaration tree of this label.- 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:Symbol.LabelSymbolUsages tree of this label.- 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
Description copied from interface:SymbolThe owner of this symbol. -
type
Description copied from interface:SymbolType of symbol. -
isUnknown
public boolean 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.
-