Class SwitchStatement
- java.lang.Object
-
- org.jd.core.v1.model.javasyntax.statement.SwitchStatement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SwitchStatement.Block
static class
SwitchStatement.DefaultLabel
static class
SwitchStatement.ExpressionLabel
static interface
SwitchStatement.Label
static class
SwitchStatement.LabelBlock
static class
SwitchStatement.MultiLabelsBlock
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<SwitchStatement.Block>
blocks
protected Expression
condition
static SwitchStatement.DefaultLabel
DEFAULT_LABEL
-
Constructor Summary
Constructors Constructor Description SwitchStatement(Expression condition, java.util.List<SwitchStatement.Block> blocks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StatementVisitor visitor)
java.util.List<SwitchStatement.Block>
getBlocks()
Expression
getCondition()
void
setCondition(Expression condition)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
DEFAULT_LABEL
public static final SwitchStatement.DefaultLabel DEFAULT_LABEL
-
condition
protected Expression condition
-
blocks
protected java.util.List<SwitchStatement.Block> blocks
-
-
Constructor Detail
-
SwitchStatement
public SwitchStatement(Expression condition, java.util.List<SwitchStatement.Block> blocks)
-
-
Method Detail
-
getCondition
public Expression getCondition()
-
setCondition
public void setCondition(Expression condition)
-
getBlocks
public java.util.List<SwitchStatement.Block> getBlocks()
-
accept
public void accept(StatementVisitor visitor)
- Specified by:
accept
in interfaceBaseStatement
-
-