edu.upenn.cis.pdtb.xpath
Class SpanListSizeFunction

java.lang.Object
  extended byedu.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

Constructor Summary
SpanListSizeFunction()
          Creates a new instance of SpanListSizeFunction
 
Method Summary
 java.lang.Object call(org.jaxen.Context context, java.util.List args)
           
static SpanList getSpanListForNode(PDTBNode node, boolean unionForRelations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanListSizeFunction

public SpanListSizeFunction()
Creates a new instance of SpanListSizeFunction

Method Detail

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)