Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen
Class ThrowsDeclaration

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

public class ThrowsDeclaration
extends AbstractStatement

Author:
Christian Sadilek

Method Summary
 String generate(Context context)
           
 MetaClass[] getExceptionTypes()
           
 boolean isEmpty()
           
static ThrowsDeclaration none()
           
static ThrowsDeclaration of(Class<? extends Throwable>... exceptionTypes)
           
static ThrowsDeclaration of(MetaClass... exceptionTypes)
           
 
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
 

Method Detail

of

public static ThrowsDeclaration of(Class<? extends Throwable>... exceptionTypes)

of

public static ThrowsDeclaration of(MetaClass... exceptionTypes)

none

public static ThrowsDeclaration none()

isEmpty

public boolean isEmpty()

getExceptionTypes

public MetaClass[] getExceptionTypes()

generate

public String generate(Context context)

Errai 3.0.1-SNAPSHOT

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