com.icl.saxon.pattern
Class UnionPattern
public class UnionPattern
A pattern formed as the union (or) of two other patterns
getDefaultPriority , getFingerprint , getLineNumber , getNodeType , getStaticContext , getSystemId , make , matches , setOriginalText , setStaticContext , simplify , toString |
UnionPattern
public UnionPattern(Pattern p1,
Pattern p2)
Constructor
p1
- the left-hand operandp2
- the right-hand operand
getLHS
public Pattern getLHS()
Get the LHS of the union
getNodeType
public short getNodeType()
Determine the types of nodes to which this pattern applies. Used for optimisation.
For patterns that match nodes of several types, return Node.NODE
- getNodeType in interface Pattern
- the type of node matched by this pattern. e.g. Node.ELEMENT or Node.TEXT
getRHS
public Pattern getRHS()
Get the RHS of the union
setOriginalText
public void setOriginalText(String pattern)
Set the original text
- setOriginalText in interface Pattern