| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icl.saxon.expr.Expression
com.icl.saxon.expr.NodeSetExpression
com.icl.saxon.expr.SingletonExpression
com.icl.saxon.expr.RootExpression
An expression whose value is always a set of nodes containing a single node, the document root.
| Field Summary | 
| Fields inherited from class com.icl.saxon.expr.Expression | 
| staticContext | 
| Constructor Summary | |
| RootExpression() | |
| Method Summary | |
|  void | display(int level)Diagnostic print of expression structure | 
|  boolean | evaluateAsBoolean(Context context)Evaluate as a boolean. | 
|  java.lang.String | evaluateAsString(Context context)Evaluate as a string | 
|  int | getDependencies()Determine which aspects of the context the expression depends on. | 
|  NodeInfo | getNode(Context context)Return the first element selected by this Expression | 
|  Expression | reduce(int dependencies,
       Context context)Perform a partial evaluation of the expression, by eliminating specified dependencies on the context. | 
|  Expression | simplify()Simplify an expression | 
| Methods inherited from class com.icl.saxon.expr.SingletonExpression | 
| enumerate, evaluateAsNodeSet, isContextDocumentNodeSet, selectFirst | 
| Methods inherited from class com.icl.saxon.expr.NodeSetExpression | 
| evaluate, getDataType, outputStringValue | 
| Methods inherited from class com.icl.saxon.expr.Expression | 
| containsReferences, evaluateAsNumber, getStaticContext, indent, make, setStaticContext, usesCurrent | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public RootExpression()
| Method Detail | 
public Expression simplify()
                    throws XPathException
simplify in class ExpressionXPathException
public NodeInfo getNode(Context context)
                 throws XPathException
getNode in class SingletonExpressioncontext - The evaluation context
XPathException
public java.lang.String evaluateAsString(Context context)
                                  throws XPathException
evaluateAsString in class SingletonExpressioncontext - The context for evaluation
XPathException
public boolean evaluateAsBoolean(Context context)
                          throws XPathException
evaluateAsBoolean in class SingletonExpressioncontext - The context (not used)
XPathExceptionpublic int getDependencies()
getDependencies in class Expression
public Expression reduce(int dependencies,
                         Context context)
                  throws XPathException
reduce in class Expressiondependencies - The dependencies to be removedcontext - The context to be used for the partial evaluation
XPathExceptionpublic void display(int level)
display in class Expression| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||