Class AbstractCompilerAnnotation
java.lang.Object
cool.klass.model.converter.compiler.annotation.AbstractCompilerAnnotation
- Direct Known Subclasses:
CauseCompilerAnnotation,RootCompilerAnnotation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CompilationUnitprotected final AnnotationSeverity -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCompilerAnnotation(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, AnsiTokenColorizer ansiTokenColorizer, AnnotationSeverity severity) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.collections.api.list.ImmutableList<AbstractContextString>protected abstract org.fusesource.jansi.Ansi.Colorprotected Stringprotected intprotected CompilationUnitprotected Stringprotected Stringprotected org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> protected intgetLine()org.eclipse.collections.api.list.ImmutableList<Integer>getLines()protected voidprotected Stringprotected StringbooleanisError()booleanabstract String
-
Field Details
-
compilationUnit
-
severity
-
-
Constructor Details
-
AbstractCompilerAnnotation
protected AbstractCompilerAnnotation(@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 AnsiTokenColorizer ansiTokenColorizer, @Nonnull AnnotationSeverity severity)
-
-
Method Details
-
getCompilationUnit
-
isError
public boolean isError() -
isWarning
public boolean isWarning() -
getSeverity
-
getContextString
-
getFilenameWithoutDirectory
-
getShortLocationString
-
applyListenerToStack
protected org.eclipse.collections.api.list.ImmutableList<AbstractContextString> applyListenerToStack() -
getFirstAndLastToken
protected org.eclipse.collections.api.tuple.Pair<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.Token> getFirstAndLastToken() -
getCaretColor
@Nonnull protected abstract org.fusesource.jansi.Ansi.Color getCaretColor() -
getLine
protected int getLine() -
getCharPositionInLine
protected int getCharPositionInLine() -
getCauseString
-
getOptionalLocationMessage
-
toGitHubAnnotation
-
getLines
-
getLines
-