org.apache.xpath.patterns
Class FunctionPattern

java.lang.Object
  |
  +--org.apache.xpath.Expression
        |
        +--org.apache.xpath.patterns.NodeTest
              |
              +--org.apache.xpath.patterns.StepPattern
                    |
                    +--org.apache.xpath.patterns.FunctionPattern

public class FunctionPattern
extends StepPattern

**For advanced use only** Match pattern step that contains a function.

See Also:
Serialized Form

Fields inherited from class org.apache.xpath.patterns.NodeTest
SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, SHOW_NAMESPACE, SUPPORTS_PRE_STRIPPING, WILD
 
Constructor Summary
FunctionPattern(Expression expr)
          Construct a FunctionPattern from a expression.
 
Method Summary
 XObject execute(XPathContext xctxt)
          Test a node to see if it matches the given node test.
 
Methods inherited from class org.apache.xpath.patterns.StepPattern
calcTargetString, canTraverseOutsideSubtree, executeRelativePathPattern, executeStep, getLastPos, getMatchScore, getPredicate, getPredicateCount, getProximityPosition, getTargetString, setPredicates, setRelativePathPattern
 
Methods inherited from class org.apache.xpath.patterns.NodeTest
debugWhatToShow, execute, getDefaultScore, getLocalName, getNamespace, getWhatToShow, initNodeTest, initNodeTest
 
Methods inherited from class org.apache.xpath.Expression
assert, error, setSourceLocator, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionPattern

public FunctionPattern(Expression expr)
Construct a FunctionPattern from a expression.
Parameters:
a - should be a expression.
Method Detail

execute

public XObject execute(XPathContext xctxt)
                throws TransformerException
Test a node to see if it matches the given node test.
Parameters:
xctxt - XPath runtime context.
Returns:
NodeTest.SCORE_NODETEST, NodeTest.SCORE_NONE, NodeTest.SCORE_NSWILD, NodeTest.SCORE_QNAME, or NodeTest.SCORE_OTHER.
Throws:
TransformerException -  
Overrides:
execute in class StepPattern


Copyright � 2000 Apache XML Project. All Rights Reserved.