com.icl.saxon.expr
public final class IsLastExpression extends Expression
Constructor Summary | |
---|---|
IsLastExpression(boolean condition)
Construct a condition that tests position()=last (if condition
is true) or position()! |
Method Summary | |
---|---|
void | display(int level)
Diagnostic print of expression structure |
Value | evaluate(Context c) |
boolean | evaluateAsBoolean(Context c) |
boolean | getCondition() |
int | getDataType()
Determine the data type of the expression |
int | getDependencies()
Get the dependencies of this expression on the context |
Expression | reduce(int dependencies, Context context)
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context. |
Expression | simplify() |
Returns: Value.BOOLEAN
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