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 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
Methods inherited from class Symbols.DefaultSymbol
isAbstract, isDeprecated, isEnum, isFinal, isInterface, isMethodSymbol, isPackageSymbol, isPackageVisibility, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isVariableSymbol, isVolatile, metadataModifier and TypeMethodDescriptionfinal booleanfinal booleanfinal booleanisEnum()booleanisFinal()final booleanbooleanbooleanfinal booleanfinal booleanfinal booleanfinal booleanisPublic()final booleanisStatic()final booleanbooleanfinal booleanmetadata()Symbol metadata informations, annotations for instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Symbol
isLocalVariable, isParameterModifier and TypeMethodDescriptiondefault booleandefault boolean
-
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.
-