| java.lang.Object gnu.mapping.PropertySet gnu.mapping.Procedure kawa.lang.AutoloadProcedure
AutoloadProcedure | public class AutoloadProcedure extends Procedure implements Externalizable(Code) | | Implement autoloading of Procedures.
A named class is loaded, and apply requests are forwarded to it.
author: Per Bothner |
Field Summary | |
String | className The name of the class that defines the procedure.
It must be the name of a class in the CLASSPATH (for example:
"kawa.standard.list"), and the class must extend Procedure,
and have a default constructor.
If the Procedure is a ModuleMody, apply0() is applied,
and that is expected to define the Procedure in the global environment. | Language | language | Procedure | loaded The loaded procedure, or null if it has not yet been loaded. |
className | String className(Code) | | The name of the class that defines the procedure.
It must be the name of a class in the CLASSPATH (for example:
"kawa.standard.list"), and the class must extend Procedure,
and have a default constructor.
If the Procedure is a ModuleMody, apply0() is applied,
and that is expected to define the Procedure in the global environment.
|
loaded | Procedure loaded(Code) | | The loaded procedure, or null if it has not yet been loaded.
|
AutoloadProcedure | public AutoloadProcedure()(Code) | | |
load | void load()(Code) | | Load the class named in className.
|
numArgs | public int numArgs()(Code) | | |
Methods inherited from gnu.mapping.Procedure | public void apply(CallContext ctx) throws Throwable(Code)(Java Doc) public static void apply(Procedure proc, CallContext ctx) throws Throwable(Code)(Java Doc) abstract public Object apply0() throws Throwable(Code)(Java Doc) abstract public Object apply1(Object arg1) throws Throwable(Code)(Java Doc) abstract public Object apply2(Object arg1, Object arg2) throws Throwable(Code)(Java Doc) abstract public Object apply3(Object arg1, Object arg2, Object arg3) throws Throwable(Code)(Java Doc) abstract public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable(Code)(Java Doc) abstract public Object applyN(Object[] args) throws Throwable(Code)(Java Doc) public void check0(CallContext ctx)(Code)(Java Doc) public void check1(Object arg1, CallContext ctx)(Code)(Java Doc) public void check2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public void check3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public void check4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public static void checkArgCount(Procedure proc, int argCount)(Code)(Java Doc) public void checkN(Object[] args, CallContext ctx)(Code)(Java Doc) public Procedure getSetter()(Code)(Java Doc) public String getSourceLocation()(Code)(Java Doc) public int match0(CallContext ctx)(Code)(Java Doc) public int match1(Object arg1, CallContext ctx)(Code)(Java Doc) public int match2(Object arg1, Object arg2, CallContext ctx)(Code)(Java Doc) public int match3(Object arg1, Object arg2, Object arg3, CallContext ctx)(Code)(Java Doc) public int match4(Object arg1, Object arg2, Object arg3, Object arg4, CallContext ctx)(Code)(Java Doc) public int matchN(Object[] args, CallContext ctx)(Code)(Java Doc) final public int maxArgs()(Code)(Java Doc) final public int minArgs()(Code)(Java Doc) public int numArgs()(Code)(Java Doc) public void set0(Object result) throws Throwable(Code)(Java Doc) public void set1(Object arg1, Object value) throws Throwable(Code)(Java Doc) public void setN(Object[] args) throws Throwable(Code)(Java Doc) public void setSetter(Procedure setter)(Code)(Java Doc) public void setSourceLocation(String file, int line)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|