public interface NodeWithThrowable<T>
Modifier and Type | Method and Description |
---|---|
default T |
addThrows(Class<? extends Throwable> clazz)
Adds this class to the throws clause
|
default T |
addThrows(ReferenceType throwType)
Adds this type to the throws clause
|
List<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
|
T |
setThrows(List<ReferenceType> throws_) |
T setThrows(List<ReferenceType> throws_)
List<ReferenceType> getThrows()
default T addThrows(ReferenceType throwType)
throwType
- the exception typedefault T 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.