Top Description Fields Constructors Methods
com.github.javaparser

public Class Problem

extends Object
Class Inheritance
Imports
java.util.Comparator, .Optional

A problem that was encountered during parsing.

Field Summary

Modifier and TypeField and Description
private final Throwable
private final TokenRange
private final String
public static Comparator<Problem>
PROBLEM_BY_BEGIN_POSITION

Sorts problems on position.

Constructor Summary

AccessConstructor and Description
public
Problem(String message, TokenRange location, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public Optional<Throwable>

Returns:

the cause that was passed into the constructor.
getCause
()

public Optional<TokenRange>

Returns:

the location that was passed into the constructor.
getLocation
()

public String

Returns:

the message that was passed into the constructor.
getMessage
()

public String

Returns:

the message plus location information.
getVerboseMessage
()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

causeback to summary
private final Throwable cause
locationback to summary
private final TokenRange location
messageback to summary
private final String message
PROBLEM_BY_BEGIN_POSITIONback to summary
public static Comparator<Problem> PROBLEM_BY_BEGIN_POSITION

Sorts problems on position.

Constructor Detail

Problemback to summary
public Problem(String message, TokenRange location, Throwable cause)

Method Detail

getCauseback to summary
public Optional<Throwable> getCause()
Returns:Optional<Throwable>

the cause that was passed into the constructor.

getLocationback to summary
public Optional<TokenRange> getLocation()
Returns:Optional<TokenRange>

the location that was passed into the constructor.

getMessageback to summary
public String getMessage()
Returns:String

the message that was passed into the constructor.

getVerboseMessageback to summary
public String getVerboseMessage()
Returns:String

the message plus location information.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override