Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.control
Class TryBlock

java.lang.Object
  extended by org.jboss.errai.codegen.AbstractStatement
      extended by org.jboss.errai.codegen.control.TryBlock
All Implemented Interfaces:
Statement

public class TryBlock
extends AbstractStatement

Author:
Christian Sadilek

Constructor Summary
TryBlock()
           
 
Method Summary
 void addCatchBlock(Variable exception)
           
 String generate(Context context)
           
 BlockStatement getBlock()
           
 BlockStatement getCatchBlock(Variable exceptionVar)
           
 BlockStatement getFinallyBlock()
           
 
Methods inherited from class org.jboss.errai.codegen.AbstractStatement
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TryBlock

public TryBlock()
Method Detail

getBlock

public BlockStatement getBlock()

addCatchBlock

public void addCatchBlock(Variable exception)

getCatchBlock

public BlockStatement getCatchBlock(Variable exceptionVar)

getFinallyBlock

public BlockStatement getFinallyBlock()

generate

public String generate(Context context)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.