Class AbstractCompilerAnnotation

java.lang.Object
cool.klass.model.converter.compiler.annotation.AbstractCompilerAnnotation
Direct Known Subclasses:
CauseCompilerAnnotation, RootCompilerAnnotation

public abstract class AbstractCompilerAnnotation extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getCompilationUnit

      @Nonnull protected CompilationUnit getCompilationUnit()
    • isError

      public boolean isError()
    • isWarning

      public boolean isWarning()
    • getSeverity

      @Nonnull public AnnotationSeverity getSeverity()
    • getContextString

      protected String getContextString()
    • getFilenameWithoutDirectory

      @Nonnull protected String getFilenameWithoutDirectory()
    • getShortLocationString

      protected String 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

      @Nonnull protected String getCauseString()
    • getOptionalLocationMessage

      @Nonnull protected String getOptionalLocationMessage()
    • toGitHubAnnotation

      public abstract String toGitHubAnnotation()
    • getLines

      public org.eclipse.collections.api.list.ImmutableList<Integer> getLines()
    • getLines

      protected void getLines(org.eclipse.collections.api.list.MutableList<Integer> lines)