org.inxar.jenesis
Interface ConditionalStatement

All Superinterfaces:
Block, Codeable, Statement
All Known Subinterfaces:
DoWhile, ElseIf, For, If, Switch, While

public interface ConditionalStatement
extends Statement, Block

Statement subinterface for the conditional statements (statements whose execution depends on the truthful evaluation of a predicate).


Method Summary
 Expression getPredicate()
          Gets the expression for this condition.
 void setPredicate(Expression expr)
          Sets the expression for this condition.
 
Methods inherited from interface org.inxar.jenesis.Statement
comment, getLabel, setLabel
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 
Methods inherited from interface org.inxar.jenesis.Block
getStatements, newBreak, newContinue, newDoWhile, newEmpty, newFor, newIf, newLet, newLocalBlock, newLocalClass, newReturn, newStmt, newSwitch, newSynchronized, newThrow, newTry, newWhile
 

Method Detail

setPredicate

public void setPredicate(Expression expr)
Sets the expression for this condition.

getPredicate

public Expression getPredicate()
Gets the expression for this condition.