edu.upenn.cis.pdtb.xpath
Class RegexpFunction

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

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

Regular Expressions. This function has the signature:

  boolean regexp(string, string)
 
The first argument is a string and the second argument is a regular expression. Returns true if the first argument matches the second. Used by PDTBXPath. For example:
  //*[@connHead='if' and child::Arg2[regexp(@rawText,".\*\W*not\\W*.*")]]
 

Author:
nikhild
See Also:
PDTBXPath

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

RegexpFunction

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