jmlparser-parent
Toggle table of contents
3.28.2-J8.0-K13.5-SNAPSHOT
java
Target filter
java
Switch theme
Search in API
Skip to content
jmlparser-parent
jmlparser-core
/
com.github.javaparser.ast.nodeTypes
/
NodeWithThrownExceptions
Node
With
Thrown
Exceptions
interface
NodeWithThrownExceptions
<
N
:
Node
?
>
(
source
)
A node that declares the types of exception it throws.
Inheritors
CallableDeclaration
MethodDeclaration
ConstructorDeclaration
CompactConstructorDeclaration
Members
Functions
add
Thrown
Exception
Link copied to clipboard
open
fun
addThrownException
(
throwType
:
ReferenceType
)
:
N
Adds this type to the throws clause
open
fun
addThrownException
(
clazz
:
Class
<
out
Throwable
>
)
:
N
Adds this class to the throws clause
get
Thrown
Exception
Link copied to clipboard
open
fun
getThrownException
(
i
:
Int
)
:
ReferenceType
get
Thrown
Exceptions
Link copied to clipboard
abstract
fun
getThrownExceptions
(
)
:
NodeList
<
ReferenceType
>
is
Thrown
Link copied to clipboard
open
fun
isThrown
(
clazz
:
Class
<
out
Throwable
>
)
:
Boolean
Check whether this elements throws this exception class.
open
fun
isThrown
(
throwableName
:
String
)
:
Boolean
Check whether this elements throws this exception class Note that this is simply a text compare, no actual type resolution takes place.
set
Thrown
Exceptions
Link copied to clipboard
abstract
fun
setThrownExceptions
(
thrownExceptions
:
NodeList
<
ReferenceType
>
)
:
N
try
Add
Import
To
Parent
Compilation
Unit
Link copied to clipboard
abstract
fun
tryAddImportToParentCompilationUnit
(
clazz
:
Class
<
out
Any
>
)