| Modifier and Type | Method and Description |
|---|---|
| public default N | Returns: thisthe exception type throwType)Adds this type to the throws clause |
| public default N | Returns: thisthe exception class clazz)Adds this class to the throws clause |
| public default ReferenceType | |
| public NodeList | |
| public default boolean | |
| public default boolean | |
| public N | |
| public void |
| addThrownException | back to summary |
|---|---|
| public default N addThrownException(ReferenceType throwType) Adds this type to the throws clause
| |
| addThrownException | back to summary |
|---|---|
| public default N addThrownException(Class<? extends Throwable> clazz) Adds this class to the throws clause | |
| getThrownException | back to summary |
|---|---|
| public default ReferenceType getThrownException(int i) | |
| getThrownExceptions | back to summary |
|---|---|
| public NodeList | |
| isThrown | back to summary |
|---|---|
| public default boolean isThrown(Class<? extends Throwable> clazz) Check whether this elements throws this exception class. Note that this is simply a text compare of the simple name of the class, no actual type resolution takes place. | |
| isThrown | back to summary |
|---|---|
| public default boolean isThrown(String throwableName) Check whether this elements throws this exception class Note that this is simply a text compare, no actual type resolution takes place.
| |
| setThrownExceptions | back to summary |
|---|---|
| public N setThrownExceptions(NodeList<ReferenceType> thrownExceptions) | |
| tryAddImportToParentCompilationUnit | back to summary |
|---|---|
| public void tryAddImportToParentCompilationUnit(Class<?> clazz) | |