org.codehaus.jparsec.examples.java.ast.statement
Class IfStatement
java.lang.Object
org.codehaus.jparsec.examples.common.ValueObject
org.codehaus.jparsec.examples.java.ast.statement.IfStatement
- All Implemented Interfaces:
- Statement
public final class IfStatement
- extends ValueObject
- implements Statement
Represents an "if" statement.
- Author:
- Ben Yu
condition
public final Expression condition
then
public final Statement then
elseifs
public final List<Pair<Expression,Statement>> elseifs
otherwise
public final Statement otherwise
IfStatement
public IfStatement(Expression condition,
Statement then,
List<Pair<Expression,Statement>> elseifs,
Statement otherwise)
toString
public String toString()
- Overrides:
toString in class ValueObject
Copyright © 2014. All rights reserved.