public static class GoloCompilationException.Problem extends 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,
String description)
Constructs a new problem to report.
|
Problem(GoloCompilationException.Problem.Type type,
GoloASTNode source,
Token token,
String description)
Constructs a new problem to report.
|
Problem(ParseException pe,
GoloASTNode source) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
Token |
getFirstToken() |
Token |
getLastToken() |
GoloASTNode |
getSource() |
GoloCompilationException.Problem.Type |
getType() |
String |
toString() |
public Problem(GoloCompilationException.Problem.Type type, GoloASTNode source, 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, 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 GoloCompilationException.Problem.Type getType()
public GoloASTNode getSource()
public Token getFirstToken()
public Token getLastToken()
public String getDescription()
Copyright © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.