Class ParseProblem

java.lang.Object
org.mozilla.javascript.ast.ParseProblem

public class ParseProblem extends Object
Encapsulates information for a JavaScript parse error or warning.
  • Constructor Details

    • ParseProblem

      public ParseProblem(ParseProblem.Type type, String message, String sourceName, int offset, int length)
      Constructs a new ParseProblem.
  • Method Details

    • getType

      public ParseProblem.Type getType()
    • setType

      public void setType(ParseProblem.Type type)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String msg)
    • getSourceName

      public String getSourceName()
    • setSourceName

      public void setSourceName(String name)
    • getFileOffset

      public int getFileOffset()
    • setFileOffset

      public void setFileOffset(int offset)
    • getLength

      public int getLength()
    • setLength

      public void setLength(int length)
    • toString

      public String toString()
      Overrides:
      toString in class Object