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, metadata
-
Method Details
-
name
Description copied from interface:Symbol.LabelSymbol
Name of that label.- Specified by:
name
in interfaceSymbol
- Specified by:
name
in interfaceSymbol.LabelSymbol
- Returns:
- simple name of the symbol.
-
declaration
Description copied from interface:Symbol.LabelSymbol
Declaration tree of this label.- Specified by:
declaration
in interfaceSymbol
- Specified by:
declaration
in 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.LabelSymbol
Usages tree of this label.- Specified by:
usages
in interfaceSymbol
- Specified by:
usages
in interfaceSymbol.LabelSymbol
- Returns:
- a list of IdentifierTree referencing this symbol. An empty list if this symbol is unused.
-
owner
Description copied from interface:Symbol
The owner of this symbol. -
type
Description copied from interface:Symbol
Type of symbol. -
isUnknown
public boolean isUnknown() -
enclosingClass
Description copied from interface:Symbol
The closest enclosing class.- Specified by:
enclosingClass
in interfaceSymbol
- Returns:
- null for package symbols, themselves for type symbol and enclosing class of methods or variables.
-