edu.upenn.cis.ptb.xpath
Class RightEdgeFunction

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

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

Right edge check of LPath. This function has the signature:

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

Author:
nikhild
See Also:
PTBXPath

Constructor Summary
RightEdgeFunction()
          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

RightEdgeFunction

public RightEdgeFunction()
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