railo.transformer.bytecode.statement
Class Condition

java.lang.Object
  extended by railo.transformer.bytecode.statement.StatementBase
      extended by railo.transformer.bytecode.statement.Condition
All Implemented Interfaces:
Statement, HasBodies

public final class Condition
extends StatementBase
implements HasBodies


Nested Class Summary
 class Condition.Pair
           
 
Constructor Summary
Condition(boolean b, Statement body, int line)
           
Condition(ExprBoolean condition, Statement body, int line)
          Constructor of the class
Condition(int line)
          Constructor of the class
 
Method Summary
 void _writeOut(BytecodeContext bc)
          write out the stament to the adater
 void addElseIf(ExprBoolean condition, Statement body, int line)
          adds a else statment
 Body[] getBodies()
           
 void setElse(Statement body, int line)
          sets the else Block of the condition
 
Methods inherited from class railo.transformer.bytecode.statement.StatementBase
getDescendantCount, getEndLine, getLine, getParent, getStartLine, hasFlowController, setEndLine, setHasFlowController, setLine, setParent, setStartLine, writeOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Condition

public Condition(int line)
Constructor of the class

Parameters:
condition -
body -
line -

Condition

public Condition(ExprBoolean condition,
                 Statement body,
                 int line)
Constructor of the class

Parameters:
condition -
body -
line -

Condition

public Condition(boolean b,
                 Statement body,
                 int line)
Method Detail

addElseIf

public void addElseIf(ExprBoolean condition,
                      Statement body,
                      int line)
adds a else statment

Parameters:
condition -
body -

setElse

public void setElse(Statement body,
                    int line)
sets the else Block of the condition

Parameters:
body -

_writeOut

public void _writeOut(BytecodeContext bc)
               throws BytecodeException
Description copied from class: StatementBase
write out the stament to the adater

Specified by:
_writeOut in class StatementBase
Throws:
BytecodeException

getBodies

public Body[] getBodies()
Specified by:
getBodies in interface HasBodies
See Also:
HasBodies.getBodies()


Copyright © 2012 Railo