## Uses of Class
javax.el.MethodExpression

- Packages that use MethodExpression
  Package | Description
  --- | ---
  javax.el | Provides the API for the Unified Expression Language 3.0
  javax.faces.component | Fundamental APIs for user interface components.
  javax.faces.event | Interfaces describing events and event listeners, and concrete event implementation classes.
  javax.faces.flow | The runtime API for Faces Flows.
  javax.faces.flow.builder | Classes for declaring a Faces Flow.
  javax.faces.validator | Interface defining the validator model, and concrete validator implementation classes.
  javax.faces.view.facelets | This package contains public classes for the Java code API of Facelets.

- - ### Uses of MethodExpression in javax.el

    Methods in javax.el that return MethodExpression
    Modifier and Type | Method and Description
    --- | ---
    `abstract MethodExpression` | ExpressionFactory.`createMethodExpression(ELContext context, String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes)` Parses an expression into a `MethodExpression` for later evaluation.

  - ### Uses of MethodExpression in javax.faces.component

    Methods in javax.faces.component that return MethodExpression
    Modifier and Type | Method and Description
    --- | ---
    `MethodExpression` | UIViewAction.`getActionExpression()` Return the `MethodExpression` pointing at the application action to be invoked, if this `UIComponent` is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the `immediate` property.
    `MethodExpression` | UICommand.`getActionExpression()`
    `MethodExpression` | ActionSource2.`getActionExpression()` Return the `MethodExpression` pointing at the application action to be invoked, if this `UIComponent` is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the `immediate` property.
    `MethodExpression` | UIViewRoot.`getAfterPhaseListener()` Return the `MethodExpression` that will be invoked after this view is rendered.
    `MethodExpression` | UIViewRoot.`getBeforePhaseListener()` Return the `MethodExpression` that will be invoked before this view is rendered.

    Methods in javax.faces.component with parameters of type MethodExpression
    Modifier and Type | Method and Description
    --- | ---
    `void` | UIViewAction.`setActionExpression(MethodExpression actionExpression)` Set the `MethodExpression` pointing at the appication action to be invoked, if this `UIComponent` is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the `immediate` property.
    `void` | UICommand.`setActionExpression(MethodExpression actionExpression)`
    `void` | ActionSource2.`setActionExpression(MethodExpression action)` Set the `MethodExpression` pointing at the appication action to be invoked, if this `UIComponent` is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the `immediate` property.
    `void` | UIViewRoot.`setAfterPhaseListener(MethodExpression newAfterPhase)` Allow an arbitrary method to be called for the "afterPhase" event as the UIViewRoot runs through its lifecycle.
    `void` | UIViewRoot.`setBeforePhaseListener(MethodExpression newBeforePhase)` Allow an arbitrary method to be called for the "beforePhase" event as the UIViewRoot runs through its lifecycle.

  - ### Uses of MethodExpression in javax.faces.event

    Constructors in javax.faces.event with parameters of type MethodExpression
    Constructor and Description
    `MethodExpressionActionListener(MethodExpression methodExpressionOneArg)` Construct a `ValueChangeListener` that contains a `MethodExpression`.
    `MethodExpressionActionListener(MethodExpression methodExpressionOneArg, MethodExpression methodExpressionZeroArg)`
    `MethodExpressionValueChangeListener(MethodExpression methodExpressionOneArg)` Construct a `ValueChangeListener` that contains a `MethodExpression`.To accomodate method expression targets that take no arguments instead of taking a `ValueChangeEvent` argument, the implementation of this class must take the argument `methodExpressionOneArg`, extract its expression string, and create another `MethodExpression` whose expected param types match those of a zero argument method.
    `MethodExpressionValueChangeListener(MethodExpression methodExpressionOneArg, MethodExpression methodExpressionZeroArg)` Construct a `ValueChangeListener` that contains a `MethodExpression`.

  - ### Uses of MethodExpression in javax.faces.flow

    Methods in javax.faces.flow that return MethodExpression
    Modifier and Type | Method and Description
    --- | ---
    `abstract MethodExpression` | Flow.`getFinalizer()` Return the `MethodExpression` that must be called by the runtime as the last thing that happens before exiting this flow.
    `abstract MethodExpression` | Flow.`getInitializer()` Return the `MethodExpression` that must be called by the runtime immediately after activating any `FlowScoped` beans declared for this flow.
    `abstract MethodExpression` | MethodCallNode.`getMethodExpression()` Return the `MethodExpression` to be invoked to when control passes to this node.

  - ### Uses of MethodExpression in javax.faces.flow.builder

    Methods in javax.faces.flow.builder with parameters of type MethodExpression
    Modifier and Type | Method and Description
    --- | ---
    `abstract MethodCallBuilder` | MethodCallBuilder.`expression(MethodExpression methodExpression)` Set the method expression of this method call node.
    `abstract FlowBuilder` | FlowBuilder.`finalizer(MethodExpression methodExpression)` A MethodExpression that will be invoked when the flow is exited.
    `abstract FlowBuilder` | FlowBuilder.`initializer(MethodExpression methodExpression)` A MethodExpression that will be invoked when the flow is entered.

  - ### Uses of MethodExpression in javax.faces.validator

    Constructors in javax.faces.validator with parameters of type MethodExpression
    Constructor and Description
    `MethodExpressionValidator(MethodExpression methodExpression)` Construct a `Validator` that contains a `MethodExpression`.

  - ### Uses of MethodExpression in javax.faces.view.facelets

    Methods in javax.faces.view.facelets that return MethodExpression
    Modifier and Type | Method and Description
    --- | ---
    `abstract MethodExpression` | TagAttribute.`getMethodExpression(FaceletContext ctx, Class type, Class[] paramTypes)` Create a MethodExpression, using this attribute's value as the expression String.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.