|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.expr.ExpressionImpl
ExpressionImpl provides a reasonable default implementation of many expression methods.
Field Summary |
Fields inherited from interface jd.xml.xpath.expr.Expression |
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN |
Constructor Summary | |
ExpressionImpl()
|
Method Summary | |
boolean |
hasContextDependencies(int dependencies)
Test if the expression has special dependecies. |
boolean |
isUniqueFilter()
Test if this expression only matches one node when used as a predicate filter for a node-set. |
boolean |
matchesFilter(XPathContext context)
Evaluate the expression and return if the context node matches the expression when used as predicate filter. |
XPathNode |
toNode(XPathContext context)
Evaluate the Expression to a XPathNode. |
XNodeSet |
toNodeSet(XPathContext context,
int ordering)
Evaluate the Expression to a XObject and convert to a XNodeSet. |
String |
toString()
Return a string representation of the expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jd.xml.xpath.expr.Expression |
accept, getContextDependencies, getResultType, toBooleanValue, toNumberValue, toStringValue, toXObject |
Constructor Detail |
public ExpressionImpl()
Method Detail |
public XNodeSet toNodeSet(XPathContext context, int ordering)
toNodeSet
in interface Expression
context
- the evaluation contextordering
- the ordering which the returned node-set must havepublic XPathNode toNode(XPathContext context)
toNode
in interface Expression
context
- the evaluation contextpublic boolean matchesFilter(XPathContext context)
matchesFilter
in interface Expression
public boolean isUniqueFilter()
isUniqueFilter
in interface Expression
public boolean hasContextDependencies(int dependencies)
hasContextDependencies
in interface Expression
dependencies
- the dependency constants merge together with bitwise orpublic String toString()
toString
in interface Expression
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |