Class IsLayoutToken

java.lang.Object
org.ek9lang.compiler.support.IsLayoutToken
All Implemented Interfaces:
Predicate<org.antlr.v4.runtime.Token>

public final class IsLayoutToken extends Object implements Predicate<org.antlr.v4.runtime.Token>
THE test for a layout token (INDENT / DEDENT / NL / EOF, LayoutTokens.LAYOUT_TOKENS): a token whose position is synthetic, never the end of anything a reader sees. Hold one and test with it.
  • Constructor Details

    • IsLayoutToken

      public IsLayoutToken()
  • Method Details

    • test

      public boolean test(org.antlr.v4.runtime.Token token)
      Specified by:
      test in interface Predicate<org.antlr.v4.runtime.Token>