Class IsWithin

java.lang.Object
org.ek9lang.compiler.support.trees.IsWithin
All Implemented Interfaces:
BiPredicate<org.antlr.v4.runtime.tree.ParseTree, org.antlr.v4.runtime.tree.ParseTree>

public final class IsWithin extends Object implements BiPredicate<org.antlr.v4.runtime.tree.ParseTree, org.antlr.v4.runtime.tree.ParseTree>
THE test for "is this node anywhere inside that one (strictly below it)". Hold one and test with it.
  • Constructor Details

    • IsWithin

      public IsWithin()
  • Method Details

    • test

      public boolean test(org.antlr.v4.runtime.tree.ParseTree node, org.antlr.v4.runtime.tree.ParseTree possibleAncestor)
      Specified by:
      test in interface BiPredicate<org.antlr.v4.runtime.tree.ParseTree, org.antlr.v4.runtime.tree.ParseTree>