Class ComputationAction1

  • All Implemented Interfaces:
    ContextAware

    public class ComputationAction1
    extends Action
    ComputationAction1 will print the result of the compuration made by children elements but only if the compuration itself is named, that is if the name attribute of the associated computation element is not null. In other words, anonymous computations will not print their result.
    Author:
    Ceki Gülcü
    • Constructor Detail

      • ComputationAction1

        public ComputationAction1()
    • Method Detail

      • end

        public void end​(InterpretationContext ec,
                        String name)
        Children elements have been processed. The sesults should be an integer placed at the top of the execution stack. This value will be printed on the console but only if the action is named. Anonymous computation will not print their result.
        Specified by:
        end in class Action