Documentation of 'net.sf.drawj2d.cmd.ExprCmd' Java class
ExprCmd
net.sf.drawj2d.cmd

Class ExprCmd

  • All Implemented Interfaces:
    Command


    public class ExprCmd
    extends java.lang.Object
    implements Command
    ExprCmd implements the "expr" command, which evaluates a mathematical expression.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ExprCmd(API api) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Thing cmdCode(Interp interp, Thing[] argv)
      The cmdCode method takes an interpreter and an array of Things, performs some calculations, and returns a Thing representing the computed value, or null.
      static void main(java.lang.String[] args)
      Test the expr command.
      • Methods inherited from class java.lang.Object

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

      • ExprCmd

        public ExprCmd(API api)
    • Method Detail

      • cmdCode

        public Thing cmdCode(Interp interp,
                             Thing[] argv)
                      throws HeclException
        Description copied from interface: Command
        The cmdCode method takes an interpreter and an array of Things, performs some calculations, and returns a Thing representing the computed value, or null.
        Specified by:
        cmdCode in interface Command
        Parameters:
        interp - an Interp value
        argv - a Thing[] value
        Returns:
        A Thing representing the computed value, or null.
        Throws:
        HeclException - if an error occurs
      • main

        public static void main(java.lang.String[] args)
        Test the expr command.
        Parameters:
        args -

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.