| java.lang.Object net.sf.saxon.pattern.Pattern net.sf.saxon.pattern.UnionPattern
UnionPattern | public class UnionPattern extends Pattern (Code) | | A pattern formed as the union (or) of two other patterns
|
UnionPattern | public UnionPattern(Pattern p1, Pattern p2)(Code) | | Constructor
Parameters: p1 - the left-hand operand Parameters: p2 - the right-hand operand |
getNodeKind | public int getNodeKind()(Code) | | Determine the types of nodes to which this pattern applies. Used for optimisation.
For patterns that match nodes of several types, return Node.NODE
the type of node matched by this pattern. e.g. Node.ELEMENT or Node.TEXT |
getNodeTest | public NodeTest getNodeTest()(Code) | | Get a NodeTest that all the nodes matching this pattern must satisfy
|
matches | public boolean matches(NodeInfo e, XPathContext context) throws XPathException(Code) | | Determine if the supplied node matches the pattern
Parameters: e - the node to be compared true if the node matches either of the operand patterns |
setLineNumber | public void setLineNumber(int lineNumber)(Code) | | Override method to set the system ID, so it's set on both halves
|
setOriginalText | public void setOriginalText(String pattern)(Code) | | Set the original text
|
setSystemId | public void setSystemId(String systemId)(Code) | | Override method to set the system ID, so it's set on both halves
|
|
|