org.codehaus.jparsec.examples.java.ast.statement
Class IfStatement

java.lang.Object
  extended by org.codehaus.jparsec.examples.common.ValueObject
      extended by 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

Field Summary
 Expression condition
           
 List<Pair<Expression,Statement>> elseifs
           
 Statement otherwise
           
 Statement then
           
 
Constructor Summary
IfStatement(Expression condition, Statement then, List<Pair<Expression,Statement>> elseifs, Statement otherwise)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.codehaus.jparsec.examples.common.ValueObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

condition

public final Expression condition

then

public final Statement then

elseifs

public final List<Pair<Expression,Statement>> elseifs

otherwise

public final Statement otherwise
Constructor Detail

IfStatement

public IfStatement(Expression condition,
                   Statement then,
                   List<Pair<Expression,Statement>> elseifs,
                   Statement otherwise)
Method Detail

toString

public String toString()
Overrides:
toString in class ValueObject


Copyright © 2014. All rights reserved.