edu.upenn.cis.pdtb.xpath
Class RegexpFunction
java.lang.Object
edu.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
|
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 |
RegexpFunction
public RegexpFunction()
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