Package org.mozilla.javascript.ast
Class ParseProblem
- java.lang.Object
-
- org.mozilla.javascript.ast.ParseProblem
-
public class ParseProblem extends Object
Encapsulates information for a JavaScript parse error or warning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParseProblem.Type
-
Constructor Summary
Constructors Constructor Description ParseProblem(ParseProblem.Type type, String message, String sourceName, int offset, int length)Constructs a new ParseProblem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFileOffset()intgetLength()StringgetMessage()StringgetSourceName()ParseProblem.TypegetType()voidsetFileOffset(int offset)voidsetLength(int length)voidsetMessage(String msg)voidsetSourceName(String name)voidsetType(ParseProblem.Type type)StringtoString()
-
-
-
Constructor Detail
-
ParseProblem
public ParseProblem(ParseProblem.Type type, String message, String sourceName, int offset, int length)
Constructs a new ParseProblem.
-
-
Method Detail
-
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)
-
-