org.jboss.errai.ioc.rebind.ioc.codegen
Class BlockStatement

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.codegen.AbstractStatement
      extended by org.jboss.errai.ioc.rebind.ioc.codegen.BlockStatement
All Implemented Interfaces:
Statement

public class BlockStatement
extends AbstractStatement

Represents a code block (e.g. a loop body).

Author:
Christian Sadilek

Constructor Summary
BlockStatement(Statement... statements)
           
 
Method Summary
 BlockStatement addStatement(Statement statement)
           
 String generate(Context context)
           
 List<Statement> getStatements()
           
 boolean isEmpty()
           
 
Methods inherited from class org.jboss.errai.ioc.rebind.ioc.codegen.AbstractStatement
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockStatement

public BlockStatement(Statement... statements)
Method Detail

addStatement

public BlockStatement addStatement(Statement statement)

generate

public String generate(Context context)

getStatements

public List<Statement> getStatements()

isEmpty

public boolean isEmpty()


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.