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
/
ParseResult
Parse
Result
open
class
ParseResult
<
T
>
(
source
)
The results given when parsing with an instance of JavaParser.
Members
Constructors
Parse
Result
Link copied to clipboard
constructor
(
result
:
T
,
problems
:
List
<
Problem
>
,
commentsCollection
:
CommentsCollection
)
General constructor.
Properties
problems
Link copied to clipboard
val
problems
:
List
<
Problem
>
Functions
get
Comments
Collection
Link copied to clipboard
open
fun
getCommentsCollection
(
)
:
Optional
<
CommentsCollection
>
get
Problem
Link copied to clipboard
open
fun
getProblem
(
i
:
Int
)
:
Problem
get
Result
Link copied to clipboard
open
fun
getResult
(
)
:
Optional
<
T
>
get
Source
Path
Link copied to clipboard
open
fun
getSourcePath
(
)
:
Optional
<
Path
>
if
Successful
Link copied to clipboard
open
fun
ifSuccessful
(
consumer
:
Consumer
<
T
>
)
Calls the consumer with the result if parsing was succesful.
is
Successful
Link copied to clipboard
open
fun
isSuccessful
(
)
:
Boolean
set
Source
Path
Link copied to clipboard
open
fun
setSourcePath
(
sourcePath
:
Path
)
:
ParseResult
<
T
>
Associates a source path with this parse result.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String