com.caucho.quercus.statement
Class IfStatement

java.lang.Object
  extended by com.caucho.quercus.statement.Statement
      extended by com.caucho.quercus.statement.IfStatement
Direct Known Subclasses:
ProIfStatement

public class IfStatement
extends Statement

Represents an if statement.


Field Summary
 
Fields inherited from class com.caucho.quercus.statement.Statement
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN
 
Constructor Summary
IfStatement(Location location, Expr test, Statement trueBlock, Statement falseBlock)
           
 
Method Summary
 Value execute(Env env)
          Executes the 'if' statement, returning any value.
protected  Statement getFalseBlock()
           
protected  Expr getTest()
           
protected  Statement getTrueBlock()
           
 
Methods inherited from class com.caucho.quercus.statement.Statement
fallThrough, getLocation, getParent, isLoop, rethrow, rethrow, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfStatement

public IfStatement(Location location,
                   Expr test,
                   Statement trueBlock,
                   Statement falseBlock)
Method Detail

getTest

protected Expr getTest()

getTrueBlock

protected Statement getTrueBlock()

getFalseBlock

protected Statement getFalseBlock()

execute

public Value execute(Env env)
Executes the 'if' statement, returning any value.

Specified by:
execute in class Statement