Class Problem

java.lang.Object
com.github.javaparser.Problem

public class Problem extends Object
A problem that was encountered during parsing.
  • Field Details

    • PROBLEM_BY_BEGIN_POSITION

      public static Comparator<Problem> PROBLEM_BY_BEGIN_POSITION
      Sorts problems on position.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMessage

      public String getMessage()
      Returns:
      the message that was passed into the constructor.
    • getVerboseMessage

      public String getVerboseMessage()
      Returns:
      the message plus location information.
    • getLocation

      public Optional<TokenRange> getLocation()
      Returns:
      the location that was passed into the constructor.
    • getCause

      public Optional<Throwable> getCause()
      Returns:
      the cause that was passed into the constructor.