public final class SwitchEntryStmt extends Statement implements NodeWithStatements<SwitchEntryStmt>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION
Constructor and Description |
---|
SwitchEntryStmt() |
SwitchEntryStmt(Optional<Expression> label,
NodeList<Statement> stmts) |
SwitchEntryStmt(Range range,
Optional<Expression> label,
NodeList<Statement> stmts) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
Optional<Expression> |
getLabel() |
NodeList<Statement> |
getStmts() |
SwitchEntryStmt |
setLabel(Optional<Expression> label) |
SwitchEntryStmt |
setStmts(NodeList<Statement> stmts) |
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBackwardsCompatibleChildrenNodes, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
addAndGetStatement, addAndGetStatement, addAndGetStatement, addAndGetStatement, addStatement, addStatement, addStatement, addStatement, addStatement, isEmpty
public SwitchEntryStmt()
public SwitchEntryStmt(Optional<Expression> label, NodeList<Statement> stmts)
public SwitchEntryStmt(Range range, Optional<Expression> label, NodeList<Statement> stmts)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public Optional<Expression> getLabel()
public NodeList<Statement> getStmts()
getStmts
in interface NodeWithStatements<SwitchEntryStmt>
public SwitchEntryStmt setLabel(Optional<Expression> label)
public SwitchEntryStmt setStmts(NodeList<Statement> stmts)
setStmts
in interface NodeWithStatements<SwitchEntryStmt>
Copyright © 2007–2016. All rights reserved.