org.hecl
Class AnonProc
- java.lang.Object
-
- org.hecl.AnonProc
-
- All Implemented Interfaces:
- ClassCommand
public class AnonProc extends java.lang.Object implements ClassCommand
TheAnonProcclass implements anonymous procedures, created like so: set aproc [proc {x} { puts $x }]
-
-
Constructor Summary
Constructors Constructor and Description AnonProc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Thingmethod(Interp interp, ClassCommandInfo context, Thing[] argv)Themethodmethod takes an interpreter, a class information and an array of Things, performs some calculations, and returns aThingwhich may benull.
-
-
-
Method Detail
-
method
public Thing method(Interp interp, ClassCommandInfo context, Thing[] argv) throws HeclException
Description copied from interface:ClassCommandThemethodmethod takes an interpreter, a class information and an array of Things, performs some calculations, and returns aThingwhich may benull. The interpreter calls this method when it detects anObjectThingas first argument of a command on the script level and detects a command handler for the class of the value of theObjectThing.- Specified by:
methodin interfaceClassCommand- Parameters:
interp- anInterpvaluecontext- A reference to theClassInfo>describing further details of th emethod.argv- AThing[]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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG