com.icl.saxon.pattern
public class UnionPattern extends Pattern
Modifier and Type | Field and Description |
---|---|
protected Pattern |
p1 |
protected Pattern |
p2 |
originalText, staticContext
Constructor and Description |
---|
UnionPattern(Pattern p1,
Pattern p2)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
getDefaultPriority, getFingerprint, getLineNumber, getStaticContext, getSystemId, make, setStaticContext, toString
public Pattern simplify() throws XPathException
simplify
in class Pattern
XPathException
public void setOriginalText(String pattern)
setOriginalText
in class Pattern
public boolean matches(NodeInfo e, Context c) throws XPathException
matches
in class Pattern
e
- The NodeInfo representing the Element or other node to be tested against the Patternc
- The context in which the match is to take place. Only relevant if the pattern
uses variables.XPathException
public short getNodeType()
getNodeType
in class Pattern
public Pattern getLHS()
public Pattern getRHS()