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.resolution.declarations
/
AssociableToAST
Associable
To
AST
interface
AssociableToAST
(
source
)
A declaration that can be potentially associated with an AST node.
Inheritors
ResolvedDeclaration
Members
Functions
to
Ast
Link copied to clipboard
open
fun
toAst
(
)
:
Optional
<
Node
>
If the declaration is associated to an AST node return it, otherwise it return empty.
open
fun
<
N
:
Node
?
>
toAst
(
clazz
:
Class
<
N
>
)
:
Optional
<
N
>
If the declaration is associated to an AST node and the type matches the expected
Class
return it, otherwise it returns empty.