slcom/slangc/parser/CommentAnnotation.sauce

24 lines
458 B
Plaintext
Raw Permalink Normal View History

package slangc.parser;
public final class CommentAnnotation extends Annotation {
private final Token comment;
public CommentAnnotation(Token comment) {
this.comment = comment;
}
public Token getComment() {
return comment;
}
@Override
public AnnotationType getAnnotationType() {
return AnnotationType.COMMENT;
}
@Override
public String toString() {
return "CommentAnnotation(" + comment.toString() + ")";
}
}