24 lines
471 B
Plaintext
24 lines
471 B
Plaintext
package slangc.parser;
|
|
|
|
public final class ErrorAnnotation extends Annotation {
|
|
private final ErrorType errorType;
|
|
|
|
public ErrorAnnotation(ErrorType errorType) {
|
|
this.errorType = errorType;
|
|
}
|
|
|
|
public ErrorType getErrorType() {
|
|
return errorType;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ErrorAnnotation(" + errorType.name() + ")";
|
|
}
|
|
|
|
@Override
|
|
public AnnotationType getAnnotationType() {
|
|
return AnnotationType.ERROR;
|
|
}
|
|
}
|