Class ExecuteJavaScriptProcessor

    • Constructor Detail

      • ExecuteJavaScriptProcessor

        public ExecuteJavaScriptProcessor​(Registry registry)
        Creates a new processor with the given registry.
        Parameters:
        registry - the registry to use
    • Method Detail

      • execute

        public void execute​(elemental.json.JsonArray invocations)
        Executes invocations received from the server.
        Parameters:
        invocations - a JSON containing invocation data
      • isBound

        protected boolean isBound​(StateNode node)
      • invoke

        protected void invoke​(String[] parameterNamesAndCode,
                              JsArray<Object> parameters,
                              JsMap<Object,​StateNode> nodeParameters)
        Executes the actual invocation. This method is protected instead of private for testing purposes.
        Parameters:
        parameterNamesAndCode - an array consisting of parameter names followed by the JavaScript expression to execute
        parameters - an array of parameter values
        nodeParameters - the node parameters