edu.upenn.cis.pdtb.xpath
Class SpanListSizeFunction
java.lang.Object
edu.upenn.cis.pdtb.xpath.SpanListSizeFunction
- All Implemented Interfaces:
- org.jaxen.Function
- public class SpanListSizeFunction
- extends java.lang.Object
- implements org.jaxen.Function
Returns the size of the SpanList associated with the context node. This function has the
signature:
number splist-size()
If the node doesn't have an associated span list, -1 is returned.
- Since:
- 0.2.5
- Author:
- nikhild
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpanListSizeFunction
public SpanListSizeFunction()
- Creates a new instance of SpanListSizeFunction
call
public java.lang.Object call(org.jaxen.Context context,
java.util.List args)
throws org.jaxen.FunctionCallException
- Specified by:
call in interface org.jaxen.Function
- Throws:
org.jaxen.FunctionCallException
getSpanListForNode
public static SpanList getSpanListForNode(PDTBNode node,
boolean unionForRelations)