edu.upenn.cis.ptb.xpath
Class ImmediatelyPrecedingFunction
java.lang.Object
edu.upenn.cis.ptb.xpath.ImmediatelyPrecedingFunction
- All Implemented Interfaces:
- org.jaxen.Function
- public class ImmediatelyPrecedingFunction
- extends java.lang.Object
- implements org.jaxen.Function
Functional definition of the Immediately Preceding Axis in LPath. This function has the signature:
node-set i-prec(node-set, string)
The second argument is a string which should be a valid XPath expression. This
expression will be run against each node in the immediately preceding axis
(see LPath Bird et al) of nodes in the nodset. The immediately preceding axis
starts from the first node of the preceding axis (say x), and includes all nodes
on the path from x to its first leaf.
i-prec(=>>::NP,'=::VB')
Select VB nodes which immediately precede an NP node. See the PTBXPath class for
how to write recursive expressions.
- Author:
- nikhild
- See Also:
PTBXPath
|
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 |
ImmediatelyPrecedingFunction
public ImmediatelyPrecedingFunction()
- Creates a new instance of SubtreeScoping
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