Interface CBExpressionLineLogType

All Known Subinterfaces:
CBExpressionSourceType
All Known Implementing Classes:
CBExpressionSource

public interface CBExpressionLineLogType
A log of the lines of text encountered so far.
  • Method Summary

    Modifier and Type
    Method
    Description
    contextualize(com.io7m.jlexing.core.LexicalPosition<?> position)
    Show a contextually highlighted line for the given lexical position.
    showLineFor(int lineNumber)
    Show the previously-encountered line with the given line number.
  • Method Details

    • showLineFor

      Optional<String> showLineFor(int lineNumber)
      Show the previously-encountered line with the given line number.
      Parameters:
      lineNumber - The line number
      Returns:
      The line, if one has been encountered
    • contextualize

      Optional<String> contextualize(com.io7m.jlexing.core.LexicalPosition<?> position)
      Show a contextually highlighted line for the given lexical position.
      Parameters:
      position - The position
      Returns:
      The highlighted line, if one has been encountered