javax.el

Class LambdaExpression

    • Constructor Detail

      • LambdaExpression

        public LambdaExpression(List<String> formalParameters,
                                ValueExpression expression)
        Creates a new LambdaExpression.
        Parameters:
        formalParameters - The list of String representing the formal parameters.
        expression - The ValueExpression representing the body.
    • Method Detail

      • setELContext

        public void setELContext(ELContext context)
        Set the ELContext to use in evaluating the LambdaExpression. The ELContext must to be set prior to the invocation of the LambdaExpression, unless it is supplied with invoke(javax.el.ELContext, java.lang.Object...).
        Parameters:
        context - The ELContext to use in evaluating the LambdaExpression.
      • invoke

        public Object invoke(ELContext elContext,
                             Object... args)
                      throws ELException
        Invoke the encapsulated Lambda expression.

        The supplied arguments are matched, in the same order, to the formal parameters. If there are more arguments than the formal parameters, the extra arguments are ignored. If there are less arguments than the formal parameters, an ELException is thrown.

        The actual Lambda arguments are added to the ELContext and are available during the evaluation of the Lambda expression. They are removed after the evaluation.

        Parameters:
        elContext - The ELContext used for the evaluation of the expression The ELContext set by setELContext(javax.el.ELContext) is ignored.
        args - The arguments to invoke the Lambda expression. For calls with no arguments, an empty array must be provided. A Lambda argument can be null.
        Returns:
        The result of invoking the Lambda expression
        Throws:
        ELException - if not enough arguments are provided
        NullPointerException - is elContext is null
      • invoke

        public Object invoke(Object... args)
        Invoke the encapsulated Lambda expression.

        The supplied arguments are matched, in the same order, to the formal parameters. If there are more arguments than the formal parameters, the extra arguments are ignored. If there are less arguments than the formal parameters, an ELException is thrown.

        The actual Lambda arguments are added to the ELContext and are available during the evaluation of the Lambda expression. They are removed after the evaluation.

        The ELContext set by setELContext(javax.el.ELContext) is used in the evaluation of the lambda Expression.
        Parameters:
        args - The arguments to invoke the Lambda expression. For calls with no arguments, an empty array must be provided. A Lambda argument can be null.
        Returns:
        The result of invoking the Lambda expression
        Throws:
        ELException - if not enough arguments are provided

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/el/lambdaexpression.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.