net.sf.swan.xpath.pattern
Class FunctionTestPattern

java.lang.Object
  |
  +--net.sf.swan.xpath.pattern.FunctionTestPattern
All Implemented Interfaces:
NodeTypes, Pattern

public class FunctionTestPattern
extends java.lang.Object
implements Pattern


Fields inherited from interface net.sf.swan.xpath.pattern.NodeTypes
ANY_NODE, ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
 
Constructor Summary
FunctionTestPattern(PatternFunction function)
           
 
Method Summary
 double getDefaultPriority()
           
 java.lang.String getMatchNodeName()
           
 short getMatchNodeType()
           
 boolean match(java.lang.Object node, org.jaxen.ContextSupport support)
           
 Pattern simplify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionTestPattern

public FunctionTestPattern(PatternFunction function)
Method Detail

match

public boolean match(java.lang.Object node,
                     org.jaxen.ContextSupport support)
              throws org.jaxen.JaxenException
Specified by:
match in interface Pattern

getDefaultPriority

public double getDefaultPriority()
Specified by:
getDefaultPriority in interface Pattern

getMatchNodeType

public short getMatchNodeType()
Specified by:
getMatchNodeType in interface Pattern

getMatchNodeName

public java.lang.String getMatchNodeName()
Specified by:
getMatchNodeName in interface Pattern

simplify

public Pattern simplify()
Specified by:
simplify in interface Pattern