net.sf.saxon.expr
public final class IsLastExpression extends Expression
Constructor Summary | |
---|---|
IsLastExpression(boolean condition)
Construct a condition that tests position() eq last() (if condition
is true) or position() ne last() (if condition is false). |
Method Summary | |
---|---|
int | computeCardinality()
Determine the static cardinality |
int | computeSpecialProperties()
Determine the special properties of this expression |
Expression | copy()
Copy an expression. |
Item | evaluateItem(XPathContext c) |
void | explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
boolean | getCondition()
Get the condition we are testing for |
int | getIntrinsicDependencies()
Get the dependencies of this expression on the context |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression |
Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType) |
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
Parameters: condition true if we are testing "equals", false for "not equals".
Returns: NON_CREATIVE.
Returns: the copy of the original expression
Returns: true if we are testing "equals", false for "not equals".
Parameters: th the type hierarchy cache
Returns: Type.BOOLEAN