| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icl.saxon.pattern.Pattern
com.icl.saxon.pattern.UnionPattern
A pattern formed as the union (or) of two other patterns
| Field Summary | |
| protected  Pattern | p1 | 
| protected  Pattern | p2 | 
| Fields inherited from class com.icl.saxon.pattern.Pattern | 
| originalText, staticContext | 
| 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(java.lang.String pattern)Set the original text | 
|  Pattern | simplify()Simplify the pattern: perform any context-independent optimisations | 
| Methods inherited from class com.icl.saxon.pattern.Pattern | 
| getDefaultPriority, getFingerprint, getLineNumber, getStaticContext, getSystemId, make, setStaticContext, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected Pattern p1
protected Pattern p2
| Constructor Detail | 
public UnionPattern(Pattern p1,
                    Pattern p2)
p1 - the left-hand operandp2 - the right-hand operand| Method Detail | 
public Pattern simplify()
                 throws XPathException
simplify in class PatternXPathExceptionpublic void setOriginalText(java.lang.String pattern)
setOriginalText in class Pattern
public 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()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||