public class SwitchStatement extends SelectionStatement
Modifier and Type | Field and Description |
---|---|
private NodeToken |
f0 |
private NodeToken |
f1 |
private Expression |
f2 |
private NodeToken |
f3 |
private Statement |
f4 |
private static long |
serialVersionUID |
Constructor and Description |
---|
SwitchStatement(Expression n0,
Statement n1) |
SwitchStatement(NodeToken n0,
NodeToken n1,
Expression n2,
NodeToken n3,
Statement n4) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(GJNoArguVisitor<R> v) |
<R,A> R |
accept(GJVisitor<R,A> v,
A argu) |
<A> void |
accept(GJVoidVisitor<A> v,
A argu) |
void |
accept(Visitor v) |
NodeToken |
getF0() |
NodeToken |
getF1() |
Expression |
getF2() |
NodeToken |
getF3() |
Statement |
getF4() |
SwitchStatementInfo |
getInfo() |
void |
setF0(NodeToken f0) |
void |
setF1(NodeToken f1) |
void |
setF2(Expression f2) |
void |
setF3(NodeToken f3) |
void |
setF4(Statement f4) |
private void |
settleInternalCases()
Set this SwitchStatement as the parentSwitch for all the internal AST
nodes with CaseLabels that do not have any parentSwitchStatement.
|
getSelStmtF0, setSelStmtF0
private static final long serialVersionUID
private NodeToken f0
private NodeToken f1
private Expression f2
private NodeToken f3
private Statement f4
public SwitchStatement(NodeToken n0, NodeToken n1, Expression n2, NodeToken n3, Statement n4)
public SwitchStatement(Expression n0, Statement n1)
private void settleInternalCases()
public SwitchStatementInfo getInfo()
public void accept(Visitor v)
accept
in class SelectionStatement
public <R,A> R accept(GJVisitor<R,A> v, A argu)
accept
in class SelectionStatement
public <R> R accept(GJNoArguVisitor<R> v)
accept
in class SelectionStatement
public <A> void accept(GJVoidVisitor<A> v, A argu)
accept
in class SelectionStatement
public NodeToken getF0()
public void setF0(NodeToken f0)
public NodeToken getF1()
public void setF1(NodeToken f1)
public Expression getF2()
public void setF2(Expression f2)
public NodeToken getF3()
public void setF3(NodeToken f3)
public Statement getF4()
public void setF4(Statement f4)