|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.SingleNodeExpression
net.sf.saxon.expr.RootExpression
public class RootExpression
An expression whose value is always a set of nodes containing a single node, the document root. This corresponds to the XPath Expression "/", including the implicit "/" at the start of a path expression with a leading "/".
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.expr.Expression |
|---|
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD |
| Constructor Summary | |
|---|---|
RootExpression()
|
|
| Method Summary | |
|---|---|
PathMap.PathMapNodeSet |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of this expression to a PathMap. |
int |
computeCardinality()
Specify that the expression returns a singleton |
Expression |
copy()
Copy an expression. |
boolean |
equals(Object other)
Is this expression the same as another expression? |
void |
explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
int |
getIntrinsicDependencies()
Determine which aspects of the context the expression depends on. |
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the items returned by this expression |
NodeInfo |
getNode(XPathContext context)
Return the first element selected by this Expression |
int |
hashCode()
get HashCode for comparing two expressions |
protected String |
noContextMessage()
Customize the error message on type checking |
String |
toString()
The toString() method for an expression attempts to give a representation of the expression in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. |
| Methods inherited from class net.sf.saxon.expr.SingleNodeExpression |
|---|
computeSpecialProperties, effectiveBooleanValue, evaluateItem, isContextPossiblyUndefined, iterate, optimize, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RootExpression()
| Method Detail |
|---|
protected String noContextMessage()
noContextMessage in class SingleNodeExpressionpublic boolean equals(Object other)
equals in class Objectpublic final int computeCardinality()
computeCardinality in class SingleNodeExpressionStaticProperty.ALLOWS_ZERO_OR_ONE,
StaticProperty.EXACTLY_ONE, StaticProperty.ALLOWS_ONE_OR_MORE,
StaticProperty.ALLOWS_ZERO_OR_MOREpublic ItemType getItemType(TypeHierarchy th)
getItemType in class SingleNodeExpressionth - the type hierarchy cache
public int hashCode()
hashCode in class Object
public NodeInfo getNode(XPathContext context)
throws XPathException
getNode in class SingleNodeExpressioncontext - The evaluation context
XPathExceptionpublic int getIntrinsicDependencies()
getIntrinsicDependencies in class SingleNodeExpressionpublic Expression copy()
copy in class Expression
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap in class ExpressionpathMap - the PathMap to which the expression should be addedpathMapNodeSet -
public String toString()
toString in class Expressionpublic void explain(ExpressionPresenter destination)
explain in class Expressiondestination - the expression presenter used to display the structure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||