Documentation of 'org.hecl.Operator' Java class
Operator
org.hecl

Class Operator

  • All Implemented Interfaces:
    Command
    Direct Known Subclasses:
    Base64Cmd, FileCmds, HttpCmd, MathCmds


    public abstract class Operator
    extends java.lang.Object
    implements Command
    The Operator class implements a number of features that are used in the creation of groups of commands, such as those found in InterpCmds, ListCmds, and so on.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      Thing cmdCode(Interp interp, Thing[] argv)
      The cmdCode method dispatches to the actual code via the operate method and cmdcode argument.
      abstract Thing operate(int cmdcode, Interp interp, Thing[] argv)
      The operate method dispatches to the actual code.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • cmdCode

        public Thing cmdCode(Interp interp,
                             Thing[] argv)
                      throws HeclException
        The cmdCode method dispatches to the actual code via the operate method and cmdcode argument.
        Specified by:
        cmdCode in interface Command
        Parameters:
        interp - an Interp value
        argv - a Thing[] value
        Returns:
        The computed Thing, or null when no value has been computed.
        Throws:
        HeclException - if an error occurs
      • operate

        public abstract Thing operate(int cmdcode,
                                      Interp interp,
                                      Thing[] argv)
                               throws HeclException
        The operate method dispatches to the actual code.
        Parameters:
        cmdcode - an int value
        interp - an Interp value
        argv - a Thing[] value
        Returns:
        a Thing value, or null when no value has been
        Throws:
        HeclException - if an error occurs

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.