|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.functions.Function
org.millscript.millscript.functions.SpiceClassConstructorFunction
public class SpiceClassConstructorFunction
The Spice class constructor is actually just a normal function that will return an instance of the relevant class.
| Constructor Summary | |
|---|---|
SpiceClassConstructorFunction(SpiceClass sc,
Function f)
Constructs a new spice class constructor function for the specified spice class and initialiser function. |
|
| Method Summary | |
|---|---|
void |
apply(Machine mc,
int nargs)
Performs this function using the specified machine, with the specified number of arguments. |
Function |
getInitialiserFunction()
Returns the initialiser function for this constructor. |
java.lang.String |
toString()
Returns a string describing this function as a class, rather than a normal function. |
| Methods inherited from class org.millscript.millscript.functions.Function |
|---|
applyUpdater, checkNargs, checkNargsGT, checkUNargs, getName, modName, reportNargsError, reportNargsGTError, setName, tryClone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpiceClassConstructorFunction(SpiceClass sc,
Function f)
sc - the spice class we want to construct an instance off - the initialiser function for the class| Method Detail |
|---|
public void apply(Machine mc,
int nargs)
Function
apply in class Functionmc - the machine to perform this function onnargs - the number of arguments the function is being invoked withFunction.apply(org.millscript.millscript.vm.Machine, int)public Function getInitialiserFunction()
public java.lang.String toString()
toString in class FunctionObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||