org.hecl
Interface ClassCommand

All Known Implementing Classes:
AlertCmd, AnonProc, CanvasCmd, ChoiceGroupCmd, CommandCmd, DateFieldCmd, DisplayableCmd, EventCmd, FormCmd, GraphicsCmd, HeclStreamCmds, ImageCmd, ImageItemCmd, ItemCmd, JavaCmd, ListCmd, OptionCmd, ScreenCmd, SettingsCmd, SpacerCmd, StringItemCmd, TextBoxCmd, TextFieldCmd, TickerCmd

public interface ClassCommand

The ClassCommand interface is the template for all commands implemented in Java working on Hecl ObjectThing.

Version:
1.0
Author:
Wolfgang S. Kechel

Method Summary
 Thing method(Interp interp, ClassCommandInfo context, Thing[] argv)
          The method method takes an interpreter, a class information and an array of Things, performs some calculations, and returns a Thing which may be null.
 

Method Detail

method

Thing method(Interp interp,
             ClassCommandInfo context,
             Thing[] argv)
             throws HeclException
The method method takes an interpreter, a class information and an array of Things, performs some calculations, and returns a Thing which may be null. The interpreter calls this method when it detects an ObjectThing as first argument of a command on the script level and detects a command handler for the class of the value of the ObjectThing.

Parameters:
interp - an Interp value
context - A reference to the ClassInfo> describing further details of th emethod.
argv - A Thing[] array holding the parameters for the method. The 0th element is the object, the 1st element is the method.
Throws:
HeclException - if an error occurs