Package org.mozilla.javascript.ast
Class ParseProblem
java.lang.Object
org.mozilla.javascript.ast.ParseProblem
Encapsulates information for a JavaScript parse error or warning.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private String
private int
private String
private ParseProblem.Type
-
Constructor Summary
ConstructorsConstructorDescriptionParseProblem
(ParseProblem.Type type, String message, String sourceName, int offset, int length) Constructs a new ParseProblem. -
Method Summary
Modifier and TypeMethodDescriptionint
int
getType()
void
setFileOffset
(int offset) void
setLength
(int length) void
setMessage
(String msg) void
setSourceName
(String name) void
setType
(ParseProblem.Type type) toString()
-
Field Details
-
type
-
message
-
sourceName
-
offset
private int offset -
length
private int length
-
-
Constructor Details
-
ParseProblem
public ParseProblem(ParseProblem.Type type, String message, String sourceName, int offset, int length) Constructs a new ParseProblem.
-
-
Method Details