|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hecl.AnonProc
public class AnonProc
The AnonProc class implements anonymous procedures,
created like so: set aproc [proc {x} { puts $x }]
| Constructor Summary | |
|---|---|
AnonProc()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnonProc()
| Method Detail |
|---|
public Thing method(Interp interp,
ClassCommandInfo context,
Thing[] argv)
throws HeclException
ClassCommandmethod 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.
method in interface ClassCommandinterp - an Interp valuecontext - 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.
HeclException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||