Class CaseLabelTreeImpl
java.lang.Object
org.sonar.java.model.JavaTree
org.sonar.java.model.statement.CaseLabelTreeImpl
- All Implemented Interfaces:
CaseLabelTree,Tree
-
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
-
Constructor Summary
ConstructorsConstructorDescriptionCaseLabelTreeImpl(InternalSyntaxToken caseOrDefaultKeyword, List<ExpressionTree> expressions, InternalSyntaxToken colonOrArrowToken) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TreeVisitor visitor) children()Creates iterable for children of this node.booleankind()Methods inherited from class org.sonar.java.model.JavaTree
allTokens, firstToken, getChildren, getLine, is, isLeaf, lastToken, parent, setParentMethods 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.tree.Tree
firstToken, is, lastToken, parent
-
Constructor Details
-
CaseLabelTreeImpl
public CaseLabelTreeImpl(InternalSyntaxToken caseOrDefaultKeyword, List<ExpressionTree> expressions, InternalSyntaxToken colonOrArrowToken)
-
-
Method Details
-
kind
-
caseOrDefaultKeyword
- Specified by:
caseOrDefaultKeywordin interfaceCaseLabelTree
-
isFallThrough
public boolean isFallThrough()- Specified by:
isFallThroughin interfaceCaseLabelTree- Returns:
- true for case with colon: "case 3:" or "default:" false for case with arrow: "case 3 ->" or "default ->"
-
expressions
- Specified by:
expressionsin interfaceCaseLabelTree
-
colonOrArrowToken
- Specified by:
colonOrArrowTokenin interfaceCaseLabelTree
-
accept
-
children
-