net.sf.saxon.expr

Interface ContextSwitchingExpression

public interface ContextSwitchingExpression

Interface implemented by expressions that switch the context, for example A/B or A[B]
Method Summary
ExpressiongetControlledExpression()
Get the subexpression that is evaluated in the new context
ExpressiongetControllingExpression()
Get the subexpression that sets the context item

Method Detail

getControlledExpression

public Expression getControlledExpression()
Get the subexpression that is evaluated in the new context

Returns: the subexpression evaluated in the context set by the controlling expression

getControllingExpression

public Expression getControllingExpression()
Get the subexpression that sets the context item

Returns: the subexpression that sets the context item, position, and size to each of its items in turn