Class SourceTextOnOneLine

java.lang.Object
org.ek9lang.compiler.support.SourceTextOnOneLine
All Implemented Interfaces:
Function<org.antlr.v4.runtime.ParserRuleContext, String>

public final class SourceTextOnOneLine extends Object implements Function<org.antlr.v4.runtime.ParserRuleContext, String>
THE source of a parse rule as written (SourceText), on one line: every run of whitespace, line breaks and indentation included, is one space. Hold one and apply it.
  • Constructor Details

    • SourceTextOnOneLine

      public SourceTextOnOneLine()
  • Method Details

    • apply

      public String apply(org.antlr.v4.runtime.ParserRuleContext ctx)
      Specified by:
      apply in interface Function<org.antlr.v4.runtime.ParserRuleContext, String>