public interface NodeWithThrowable<N extends Node>
Modifier and Type | Method and Description |
---|---|
default N |
addThrows(Class<? extends Throwable> clazz)
Adds this class to the throws clause
|
default N |
addThrows(ReferenceType<?> throwType)
Adds this type to the throws clause
|
NodeList<ReferenceType<?>> |
getThrows() |
default boolean |
isThrows(Class<? extends Throwable> clazz)
Check whether this elements throws this exception class
|
default boolean |
isThrows(String throwableName)
Check whether this elements throws this exception class
|
N |
setThrows(NodeList<ReferenceType<?>> throws_) |
N setThrows(NodeList<ReferenceType<?>> throws_)
NodeList<ReferenceType<?>> getThrows()
default N addThrows(ReferenceType<?> throwType)
throwType
- the exception typedefault N addThrows(Class<? extends Throwable> clazz)
clazz
- the exception classdefault boolean isThrows(Class<? extends Throwable> clazz)
clazz
- the class of the exceptiondefault boolean isThrows(String throwableName)
throwableName
- the class of the exceptionCopyright © 2007–2016. All rights reserved.