public class ThrowsDeclaration extends AbstractStatement
Modifier and Type | Method and Description |
---|---|
String |
generate(Context context) |
MetaClass[] |
getExceptionTypes() |
boolean |
isEmpty() |
static ThrowsDeclaration |
none() |
static ThrowsDeclaration |
of(Class<? extends Throwable>... exceptionTypes) |
static ThrowsDeclaration |
of(MetaClass... exceptionTypes) |
getType
public static ThrowsDeclaration of(Class<? extends Throwable>... exceptionTypes)
public static ThrowsDeclaration of(MetaClass... exceptionTypes)
public static ThrowsDeclaration none()
public boolean isEmpty()
public MetaClass[] getExceptionTypes()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.