edu.upenn.cis.ptb.xpath
Class LeftEdgeFunction

java.lang.Object
  extended byedu.upenn.cis.ptb.xpath.LeftEdgeFunction
All Implemented Interfaces:
org.jaxen.Function

public class LeftEdgeFunction
extends java.lang.Object
implements org.jaxen.Function

Left Edge check of LPath. This function has the signature:

 boolean l-edge()
 
Returns true if the context node has no node on its preceding axis, i.e., it is on the left periphery of the tree. For example:
  =>>::S/=>>::NP[l-edge()]
 
Selects all the NPs on the left edge that are dominated by an S.

Author:
nikhild
See Also:
PTBXPath

Constructor Summary
LeftEdgeFunction()
          Creates a new instance of SubtreeScoping
 
Method Summary
 java.lang.Object call(org.jaxen.Context context, java.util.List list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeftEdgeFunction

public LeftEdgeFunction()
Creates a new instance of SubtreeScoping

Method Detail

call

public java.lang.Object call(org.jaxen.Context context,
                             java.util.List list)
                      throws org.jaxen.FunctionCallException
Specified by:
call in interface org.jaxen.Function
Throws:
org.jaxen.FunctionCallException