org.apache.xpath.patterns
Class UnionPattern
- java.io.Serializable, ExpressionNode, SourceLocator, XPathVisitable
public class UnionPattern
This class represents a union pattern, which can have multiple individual
StepPattern patterns.
asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, deepEquals, error, execute, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, fixupVariables, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr |
canTraverseOutsideSubtree
public boolean canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside
the current subtree.
- canTraverseOutsideSubtree in interface Expression
- true if traversal outside the context node's subtree can occur.
execute
public XObject execute(XPathContext xctxt)
throws javax.xml.transform.TransformerException Test a node to see if it matches any of the patterns in the union.
- execute in interface Expression
xctxt - XPath runtime context.
fixupVariables
public void fixupVariables(java.util.Vector vars,
int globalsSize) No arguments to process, so this does nothing.
- fixupVariables in interface Expression
getPatterns
public StepPattern[] getPatterns()
Get the contained step patterns to be tested.
- an array of the contained step patterns to be tested.
setPatterns
public void setPatterns(StepPattern[] patterns)
Set the contained step patterns to be tested.
patterns - the contained step patterns to be tested.
Copyright B) 2005 Apache XML Project. All Rights Reserved.