org.mule.devkit.model.code
Class GeneratedConditional

java.lang.Object
  extended by org.mule.devkit.model.code.GeneratedConditional
All Implemented Interfaces:
Statement

public class GeneratedConditional
extends Object
implements Statement

If statement, with optional else clause


Method Summary
 GeneratedBlock _else()
          Create a block to be executed by "else" branch
 GeneratedConditional _elseif(GeneratedExpression boolExp)
          Creates ...
 GeneratedBlock _then()
          Return the block to be excuted by the "then" branch
 void state(Formatter f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

_then

public GeneratedBlock _then()
Return the block to be excuted by the "then" branch

Returns:
Then block

_else

public GeneratedBlock _else()
Create a block to be executed by "else" branch

Returns:
Newly generated else block

_elseif

public GeneratedConditional _elseif(GeneratedExpression boolExp)
Creates ... else if(...) ... code.


state

public void state(Formatter f)
Specified by:
state in interface Statement


Copyright © 2010–2014 MuleSoft, Inc.. All rights reserved.