ParseResult

open class ParseResult<T>(source)

The results given when parsing with an instance of JavaParser.

Constructors

Link copied to clipboard
constructor(result: T, problems: List<Problem>, commentsCollection: CommentsCollection)
General constructor.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun getProblem(i: Int): Problem
Link copied to clipboard
open fun getResult(): Optional<T>
Link copied to clipboard
Link copied to clipboard
open fun ifSuccessful(consumer: Consumer<T>)
Calls the consumer with the result if parsing was succesful.
Link copied to clipboard
open fun isSuccessful(): Boolean
Link copied to clipboard
open fun setSourcePath(sourcePath: Path): ParseResult<T>
Associates a source path with this parse result.
Link copied to clipboard
open fun toString(): String