org.codehaus.jparsec.examples.java.ast.statement
Class SwitchStatement
java.lang.Object
org.codehaus.jparsec.examples.common.ValueObject
org.codehaus.jparsec.examples.java.ast.statement.SwitchStatement
- All Implemented Interfaces:
- Statement
public final class SwitchStatement
- extends ValueObject
- implements Statement
Represents the "switch case" expression.
- Author:
- Ben Yu
condition
public final Expression condition
cases
public final List<Pair<Expression,Statement>> cases
defaultCase
public final Statement defaultCase
SwitchStatement
public SwitchStatement(Expression condition,
List<Pair<Expression,Statement>> cases,
Statement defaultCase)
toString
public String toString()
- Overrides:
toString in class ValueObject
Copyright © 2014. All rights reserved.