org.inxar.jenesis
Interface If

All Superinterfaces:
Block, Codeable, ConditionalStatement, Statement

public interface If
extends ConditionalStatement

Statement subinterface for the if, else if, else construct.


Method Summary
 Else getElse()
          Gets the optional Else clause.
 Iterator getElseIfs()
          Gets the list of else if's as an iterator of ElseIf.
 ElseIf newElseIf(Expression predicate)
          Adds a new ElseIf to the list of else-if's.
 
Methods inherited from interface org.inxar.jenesis.ConditionalStatement
getPredicate, setPredicate
 
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

getElseIfs

public Iterator getElseIfs()
Gets the list of else if's as an iterator of ElseIf.

newElseIf

public ElseIf newElseIf(Expression predicate)
Adds a new ElseIf to the list of else-if's.

getElse

public Else getElse()
Gets the optional Else clause.