Package net.sf.saxon.expr

## Interface ContextSwitchingExpression

- All Superinterfaces:
    `ContextOriginator`
  All Known Implementing Classes:
    `FilterExpression`, `ForEach`, `ForEachGroup`, `IterateInstr`, `MultithreadedForEach`, `SimpleStepExpression`, `SlashExpression`

      public interface ContextSwitchingExpression
      extends ContextOriginator

  Interface implemented by expressions that switch the context, for example A/B or A[B]

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Expression` | `getActionExpression()` | Get the subexpression that is evaluated in the new context
    `Expression` | `getSelectExpression()` | Get the subexpression that sets the context item

- - ### Method Detail

    - #### getSelectExpression

          Expression getSelectExpression()

      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

    - #### getActionExpression

          Expression getActionExpression()

      Get the subexpression that is evaluated in the new context
      Returns:
        the subexpression evaluated in the context set by the controlling expression