net.sf.saxon.expr

Class SliceExpression

public class SliceExpression extends ComputedExpression

A SliceExpression represents a FilterExpression of the form EXPR[position() > n and position() < m], where n and m are not necessarily constants
Field Summary
Expressionbase
PositionRangerange
Constructor Summary
SliceExpression(Expression base, PositionRange range)
Construct a SliceExpression
Method Summary
intcomputeCardinality()
intcomputeSpecialProperties()
voiddisplay(int level, NamePool pool, PrintStream out)
booleanequals(Object other)
ExpressiongetBaseExpression()
ItemTypegetItemType(TypeHierarchy th)
inthashCode()
SequenceIteratoriterate(XPathContext context)
IteratoriterateSubExpressions()
Expressionoptimize(Optimizer opt, StaticContext env, ItemType contextItemType)
Expressionpromote(PromotionOffer offer)
ExpressiontypeCheck(StaticContext env, ItemType contextItemType)

Field Detail

base

Expression base

range

PositionRange range

Constructor Detail

SliceExpression

public SliceExpression(Expression base, PositionRange range)
Construct a SliceExpression

Method Detail

computeCardinality

public int computeCardinality()

computeSpecialProperties

public int computeSpecialProperties()

display

public void display(int level, NamePool pool, PrintStream out)

equals

public boolean equals(Object other)

getBaseExpression

public Expression getBaseExpression()

getItemType

public ItemType getItemType(TypeHierarchy th)

hashCode

public int hashCode()

iterate

public SequenceIterator iterate(XPathContext context)

iterateSubExpressions

public Iterator iterateSubExpressions()

optimize

public Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType)

promote

public Expression promote(PromotionOffer offer)

typeCheck

public Expression typeCheck(StaticContext env, ItemType contextItemType)