|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jclark.xsl.expr.AlternativesPattern
class AlternativesPattern
represents an "OR" (union) of match patterns
| Constructor Summary | |
|---|---|
AlternativesPattern(TopLevelPattern pattern1,
PathPattern pattern2)
construct with a head pattern1 and tail pattern2 |
|
| Method Summary | |
|---|---|
PathPattern[] |
getAlternatives()
may represent an "or" grouping, so we allow them to be broken out and dealt with separately |
boolean |
matches(Node node,
ExprContext context)
evaluate to a boolean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AlternativesPattern(TopLevelPattern pattern1,
PathPattern pattern2)
| Method Detail |
|---|
public boolean matches(Node node,
ExprContext context)
throws XSLException
matches in interface PatternXSLExceptionpublic PathPattern[] getAlternatives()
TopLevelPattern
getAlternatives in interface TopLevelPattern
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||