public static class GoloCompilationException.Problem extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GoloCompilationException.Problem.Type
The possible problem types.
|
Constructor and Description |
---|
Problem(GoloCompilationException.Problem.Type type,
GoloASTNode source,
java.lang.String description)
Constructs a new problem to report.
|
Problem(GoloCompilationException.Problem.Type type,
GoloASTNode source,
Token token,
java.lang.String description)
Constructs a new problem to report.
|
Problem(ParseException pe,
GoloASTNode source) |
Problem(java.nio.charset.UnsupportedCharsetException uce) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
Token |
getFirstToken() |
Token |
getLastToken() |
GoloASTNode |
getSource() |
GoloCompilationException.Problem.Type |
getType() |
java.lang.String |
toString() |
public Problem(GoloCompilationException.Problem.Type type, GoloASTNode source, java.lang.String description)
type
- the problem type.source
- the problem source, which may be of any meaningful type.description
- the problem description in a human-readable form.public Problem(GoloCompilationException.Problem.Type type, GoloASTNode source, Token token, java.lang.String description)
type
- the problem type.source
- the problem source, which may be of any meaningful type.token
- the precise source token, where the problem is located.description
- the problem description in a human-readable form.public Problem(ParseException pe, GoloASTNode source)
public Problem(java.nio.charset.UnsupportedCharsetException uce)
public GoloCompilationException.Problem.Type getType()
public GoloASTNode getSource()
public Token getFirstToken()
public Token getLastToken()
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object