|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.joost.grammar.Tree
net.sf.joost.grammar.tree.CDataTestTree
public final class CDataTestTree
Objects of CDataTestTree represent CDATA test nodes ("cdata()")in the syntax tree of a pattern or an STXPath expression.
Field Summary |
---|
Fields inherited from class net.sf.joost.grammar.Tree |
---|
ADD, AND, ATTR, ATTR_LOCAL_WILDCARD, ATTR_URI_WILDCARD, ATTR_WILDCARD, AVT, CDATA_TEST, CHILD, COMMENT_TEST, DDOT, DESC, DIV, DOT, EQ, FUNCTION, GE, GT, LE, left, LIST, lName, LOCAL_WILDCARD, LT, MOD, MULT, NAME_TEST, NE, NODE_TEST, NUMBER, OR, PI_TEST, PREDICATE, right, ROOT, SEQ, STRING, SUB, TEXT_TEST, type, UNION, uri, URI_WILDCARD, value, VALUE, VAR, WILDCARD |
Constructor Summary | |
---|---|
CDataTestTree()
|
Method Summary | |
---|---|
double |
getPriority()
Returns the default priority of the STXPath pattern represented by this tree. |
boolean |
isConstant()
|
boolean |
matches(Context context,
int top,
boolean setPosition)
Determines if the event stack matches the pattern represented by this Tree object. |
Methods inherited from class net.sf.joost.grammar.Tree |
---|
deepCopy, evaluate, evaluate, reverseAssociativity, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CDataTestTree()
Method Detail |
---|
public boolean matches(Context context, int top, boolean setPosition) throws SAXException
Tree
matches
in class Tree
context
- the Context objecttop
- the part of the stack to be considered while matching
(the upper most element is at position top-1)setPosition
- true
if the context position
(Context.position
) should be set in case the
event stack matches this pattern
true
if the stack matches the pattern represented
by this Tree.
SAXException
public double getPriority()
Tree
getPriority
in class Tree
public boolean isConstant()
isConstant
in class Tree
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |