com.icl.saxon.expr
public class VariableReference extends Expression
Field Summary | |
---|---|
Binding | binding |
int | fingerprint |
Constructor Summary | |
---|---|
VariableReference(int fingerprint, StaticContext staticContext)
Constructor |
Method Summary | |
---|---|
void | display(int level)
Diagnostic print of expression structure |
Value | evaluate(Context c)
Get the value of this variable in a given context. |
Binding | getBinding()
Get the object bound to the variable |
int | getDataType()
Determine the data type of the expression, if possible |
int | getDependencies()
Determine which aspects of the context the expression depends on. |
Expression | reduce(int dependencies, Context context)
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context. |
Expression | simplify()
Simplify the expression. |
Parameters: name the variable name (as a Name object)
Parameters: context the Context which contains the relevant variable bindings
Returns: the value of the variable, if it is defined
UNKNOWN: XPathException if the variable is undefined
Returns: the type of the variable, if this can be determined statically; otherwise Value.ANY (meaning not known in advance)
Parameters: dependencies The dependencies to be removed context The context to be used for the partial evaluation
Returns: a new expression that does not have any of the specified dependencies