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(java.lang.String pattern)
Set the original text
|
Pattern |
simplify()
Simplify the pattern: perform any context-independent optimisations
|
getDefaultPriority, getFingerprint, getLineNumber, getStaticContext, getSystemId, make, setStaticContext, toStringpublic Pattern simplify() throws XPathException
simplify in class PatternXPathExceptionpublic void setOriginalText(java.lang.String pattern)
setOriginalText in class Patternpublic boolean matches(NodeInfo e, Context c) throws XPathException
matches in class Patterne - 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.XPathExceptionpublic short getNodeType()
getNodeType in class Patternpublic Pattern getLHS()
public Pattern getRHS()