Package org.sonar.java.resolve
Class JavaSymbol.JavaLabelSymbol
- java.lang.Object
-
- org.sonar.java.resolve.JavaSymbol
-
- org.sonar.java.resolve.JavaSymbol.JavaLabelSymbol
-
- All Implemented Interfaces:
Symbol
,Symbol.LabelSymbol
- Enclosing class:
- JavaSymbol
public static class JavaSymbol.JavaLabelSymbol extends JavaSymbol implements Symbol.LabelSymbol
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.resolve.JavaSymbol
JavaSymbol.JavaLabelSymbol, JavaSymbol.MethodJavaSymbol, JavaSymbol.PackageJavaSymbol, JavaSymbol.TypeJavaSymbol, JavaSymbol.TypeVariableJavaSymbol, JavaSymbol.VariableJavaSymbol, JavaSymbol.WildcardSymbol
-
Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.semantic.Symbol
Symbol.LabelSymbol, Symbol.MethodSymbol, Symbol.TypeSymbol, Symbol.VariableSymbol
-
-
Constructor Summary
Constructors Constructor Description JavaLabelSymbol(LabeledStatementTree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabeledStatementTree
declaration()
Declaration node of this symbol.-
Methods inherited from class org.sonar.java.resolve.JavaSymbol
addUsage, callbackOnceComplete, complete, enclosingClass, flags, getName, getType, isAbstract, isAnnotation, isDefault, isDeprecated, isEnum, isFinal, isFlag, isInterface, isMethodSymbol, isPackageSymbol, isPackageVisibility, isPrivate, isProtected, isPublic, isStatic, isTypeSymbol, isUnknown, isVariableSymbol, isVolatile, metadata, name, outermostClass, owner, packge, type, usages
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.java.api.semantic.Symbol.LabelSymbol
name, usages
-
-
-
-
Constructor Detail
-
JavaLabelSymbol
public JavaLabelSymbol(LabeledStatementTree tree)
-
-
Method Detail
-
declaration
public LabeledStatementTree declaration()
Description copied from interface:Symbol
Declaration node of this symbol. Currently, only works for declaration within the same file.- Specified by:
declaration
in interfaceSymbol
- Specified by:
declaration
in interfaceSymbol.LabelSymbol
- Overrides:
declaration
in classJavaSymbol
- Returns:
- the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.
-
-