slcom/slangc/parser/ErrorAnnotation.sauce

24 lines
471 B
Plaintext
Raw Permalink Normal View History

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;
}
}