Package org.sonar.java.model.statement
Class CaseLabelTreeImpl
- java.lang.Object
-
- org.sonar.java.model.JavaTree
-
- org.sonar.java.model.statement.CaseLabelTreeImpl
-
- All Implemented Interfaces:
CaseLabelTree
,Tree
public class CaseLabelTreeImpl extends JavaTree implements CaseLabelTree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.model.JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
-
-
Field Summary
-
Fields inherited from class org.sonar.java.model.JavaTree
grammarRuleKey
-
-
Constructor Summary
Constructors Constructor Description CaseLabelTreeImpl(InternalSyntaxToken caseOrDefaultKeyword, ExpressionTree expression, InternalSyntaxToken colonToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(TreeVisitor visitor)
SyntaxToken
caseOrDefaultKeyword()
Iterable<Tree>
children()
Creates iterable for children of this node.SyntaxToken
colonToken()
ExpressionTree
expression()
Tree.Kind
kind()
-
Methods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParent
-
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.tree.Tree
firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
CaseLabelTreeImpl
public CaseLabelTreeImpl(InternalSyntaxToken caseOrDefaultKeyword, @Nullable ExpressionTree expression, InternalSyntaxToken colonToken)
-
-
Method Detail
-
caseOrDefaultKeyword
public SyntaxToken caseOrDefaultKeyword()
- Specified by:
caseOrDefaultKeyword
in interfaceCaseLabelTree
-
expression
@Nullable public ExpressionTree expression()
- Specified by:
expression
in interfaceCaseLabelTree
-
colonToken
public SyntaxToken colonToken()
- Specified by:
colonToken
in interfaceCaseLabelTree
-
accept
public void accept(TreeVisitor visitor)
-
-