|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.pattern.RelativePathPattern
Implements the following XSLT Pattern constructions: [4] RelativePathPattern
Field Summary | |
protected Axis |
axis
|
protected RelativePathPattern |
lhs
|
protected StepPattern |
rhs
|
Fields inherited from interface com.novell.xsl.pattern.Pattern |
ANY_TARGET, ATTRIBUTE_NAMED_TARGET, ATTRIBUTE_WILDCARD_TARGET, COMMENT_TARGET, ELEMENT_NAMED_TARGET, ELEMENT_WILDCARD_TARGET, NAMESPACE_TARGET, PI_TARGET, ROOT_TARGET, TEXT_TARGET |
Constructor Summary | |
protected |
RelativePathPattern()
Constructor for use by AbsolutePathPattern to represent a pattern of '/'. |
protected |
RelativePathPattern(RelativePathPattern copy)
Constructor for use by AbsolutePathPattern to represent a pattern of '/' RelativePathPattern |
|
RelativePathPattern(RelativePathPattern lhs,
int opr,
StepPattern rhs)
Construct a RelativePathPattern that corresponds to the XSLT productions: RelativePathPattern := RelativePathPattern '/' StepPattern | RelativePathPattern '//' StepPattern |
|
RelativePathPattern(StepPattern pattern)
Construct a RelativePathPattern that corresponds to the XSLT construction: RelativePathPattern ::= StepPattern |
Method Summary | |
void |
dump(PrintWriter writer,
int indent)
Print the pattern in a readable form for debugging. |
double |
getDefaultPriority()
Return the default priority for this pattern. |
int |
getTarget()
Return the target type of this Pattern. |
ExpandedQName |
getTargetName()
Return the name of the patterns target, if there is a target name. |
boolean |
match(Node node,
ExpressionContext context)
Return true or false depending on whether the passed node matches the XSLT Pattern or not. |
protected Node |
performMatch(Node node,
ExpressionContext context)
Perform the match semantics on the passed node. |
String |
toString()
Provide a readable description for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected RelativePathPattern lhs
protected Axis axis
protected StepPattern rhs
Constructor Detail |
public RelativePathPattern(StepPattern pattern)
pattern
- The StepPattern that makes up the RelativePathPatternpublic RelativePathPattern(RelativePathPattern lhs, int opr, StepPattern rhs)
lhs
- The RelativePathPattern to which to append the StepPattern.opr
- OperatorToken.SLASH or OperatorToken.SLASH_SLASH.rhs
- The StepPattern to be composed with the RelativePathPattern.protected RelativePathPattern()
protected RelativePathPattern(RelativePathPattern copy)
copy
- The RelativePathPattern following the '/'Method Detail |
public String toString()
public boolean match(Node node, ExpressionContext context) throws XPathEvaluationException
match
in interface Pattern
node
- The node to match.context
- The context for matching.
XPathEvaluationException
public double getDefaultPriority()
getDefaultPriority
in interface Pattern
public int getTarget()
getTarget
in interface Pattern
public ExpandedQName getTargetName()
getTargetName
in interface Pattern
public void dump(PrintWriter writer, int indent)
dump
in interface Pattern
writer
- The output device.indent
- Number of tabs to indent the result.protected Node performMatch(Node node, ExpressionContext context) throws XPathEvaluationException
node
- The node to match.context
- The expression context for matching.
XPathEvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |