Class RootCompilerAnnotation
java.lang.Object
cool.klass.model.converter.compiler.annotation.AbstractCompilerAnnotation
cool.klass.model.converter.compiler.annotation.RootCompilerAnnotation
- All Implemented Interfaces:
Comparable<RootCompilerAnnotation>
public class RootCompilerAnnotation
extends AbstractCompilerAnnotation
implements Comparable<RootCompilerAnnotation>
-
Field Summary
Fields inherited from class cool.klass.model.converter.compiler.annotation.AbstractCompilerAnnotation
compilationUnit, severity -
Constructor Summary
ConstructorsConstructorDescriptionRootCompilerAnnotation(CompilationUnit compilationUnit, Optional<CauseCompilerAnnotation> macroCause, org.eclipse.collections.api.list.ImmutableList<org.antlr.v4.runtime.ParserRuleContext> offendingContexts, org.eclipse.collections.api.list.ImmutableList<IAntlrElement> sourceContexts, String annotationCode, String message, AnsiTokenColorizer ansiTokenColorizer, AnnotationSeverity severity) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(RootCompilerAnnotation other) protected org.fusesource.jansi.Ansi.Colorprotected StringtoString()Methods inherited from class cool.klass.model.converter.compiler.annotation.AbstractCompilerAnnotation
applyListenerToStack, getCauseString, getCharPositionInLine, getCompilationUnit, getContextString, getFilenameWithoutDirectory, getFirstAndLastToken, getLine, getLines, getLines, getOptionalLocationMessage, getSeverity, getShortLocationString, isError, isWarning
-
Constructor Details
-
RootCompilerAnnotation
public RootCompilerAnnotation(@Nonnull CompilationUnit compilationUnit, @Nonnull Optional<CauseCompilerAnnotation> macroCause, @Nonnull org.eclipse.collections.api.list.ImmutableList<org.antlr.v4.runtime.ParserRuleContext> offendingContexts, @Nonnull org.eclipse.collections.api.list.ImmutableList<IAntlrElement> sourceContexts, @Nonnull String annotationCode, @Nonnull String message, @Nonnull AnsiTokenColorizer ansiTokenColorizer, @Nonnull AnnotationSeverity severity)
-
-
Method Details
-
getAnnotationCode
-
compareTo
- Specified by:
compareToin interfaceComparable<RootCompilerAnnotation>
-
toString
-
getCaretColor
@Nonnull protected org.fusesource.jansi.Ansi.Color getCaretColor()- Specified by:
getCaretColorin classAbstractCompilerAnnotation
-
toGitHubAnnotation
- Specified by:
toGitHubAnnotationin classAbstractCompilerAnnotation
-
getSeverityString
-