Class LabelPrefixPredicate<V>

  • Type Parameters:
    V - the type of the value field of a parse tree node
    All Implemented Interfaces:
    Predicate<Node<V>>

    public class LabelPrefixPredicate<V>
    extends java.lang.Object
    implements Predicate<Node<V>>
    A simple Node predicate determining whether a Node matches a given label prefix. Useful for example for various methods of the ParseTreeUtils.
    • Constructor Summary

      Constructors 
      Constructor Description
      LabelPrefixPredicate​(java.lang.String labelPrefix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(Node<V> input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LabelPrefixPredicate

        public LabelPrefixPredicate​(java.lang.String labelPrefix)
    • Method Detail