com.icl.saxon.pattern
public class UnionPattern extends Pattern
| Field Summary | |
|---|---|
| protected Pattern | p1 |
| protected Pattern | p2 |
| Constructor Summary | |
|---|---|
| UnionPattern(Pattern p1, Pattern p2)
Constructor | |
| Method Summary | |
|---|---|
| Pattern | getLHS()
Get the LHS of the union |
| short | getNodeType()
Determine the types of nodes to which this pattern applies. |
| Pattern | getRHS()
Get the RHS of the union |
| boolean | matches(NodeInfo e, Context c)
Determine if the supplied node matches the pattern |
| void | setOriginalText(String pattern)
Set the original text |
| Pattern | simplify()
Simplify the pattern: perform any context-independent optimisations |
Parameters: p1 the left-hand operand p2 the right-hand operand
Returns: the type of node matched by this pattern. e.g. Node.ELEMENT or Node.TEXT
Returns: true if the node matches either of the operand patterns
UNKNOWN: the node to be compared