public final class SwitchStmt extends Statement
| Constructor and Description |
|---|
SwitchStmt() |
SwitchStmt(Expression selector,
List<SwitchEntryStmt> entries) |
SwitchStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression selector,
List<SwitchEntryStmt> entries) |
| 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.
|
SwitchStmt |
clone() |
List<Node> |
getChildren() |
List<SwitchEntryStmt> |
getEntries() |
Expression |
getSelector() |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setEntries(List<SwitchEntryStmt> entries) |
void |
setSelector(Expression selector) |
getSymbolData, setSymbolDatacheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic SwitchStmt()
public SwitchStmt(Expression selector, List<SwitchEntryStmt> entries)
public SwitchStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression selector,
List<SwitchEntryStmt> entries)
public boolean removeChild(Node child)
removeChild in class Nodepublic List<Node> getChildren()
getChildren in class Statementpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic List<SwitchEntryStmt> getEntries()
public Expression getSelector()
public void setEntries(List<SwitchEntryStmt> entries)
public void setSelector(Expression selector)
public boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Nodepublic SwitchStmt clone() throws CloneNotSupportedException
clone in class StatementCloneNotSupportedExceptionCopyright © 2018. All rights reserved.