org.parboiled.support
Class LabelPrefixPredicate<V>

java.lang.Object
  extended by org.parboiled.support.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
LabelPrefixPredicate(java.lang.String labelPrefix)
           
 
Method Summary
 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

apply

public boolean apply(Node<V> input)
Specified by:
apply in interface Predicate<Node<V>>