edu.upenn.cis.ptb.xpath
Class ImmediatelyFollowingFunction
java.lang.Object
edu.upenn.cis.ptb.xpath.ImmediatelyFollowingFunction
- All Implemented Interfaces:
- org.jaxen.Function
- public class ImmediatelyFollowingFunction
- extends java.lang.Object
- implements org.jaxen.Function
Functional definition of the Immediately Following Axis in LPath. This function has the signature:
node-set i-foll(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 following axis
(see LPath Bird et al) of nodes in the nodset. The immediately following axis
starts from the first node of the following axis (say x), and includes all nodes
on the path from x to its first leaf.
i-foll(>>::VB,'=::NP')
Select NP nodes which immediately follow a VB 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 |
ImmediatelyFollowingFunction
public ImmediatelyFollowingFunction()
- 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