| java.lang.Object kawa.lang.Syntax kawa.lang.AutoloadSyntax
AutoloadSyntax | public class AutoloadSyntax extends Syntax implements Externalizable(Code) | | Implement autoloading of Syntax (including macros).
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 macro/builtin.
It must be the name of a class in the CLASSPATH (for example:
"kawa.standard.list"). | Environment | env | Syntax | loaded The loaded syntax, or null if it has not yet been loaded. |
className | String className(Code) | | The name of the class that defines the macro/builtin.
It must be the name of a class in the CLASSPATH (for example:
"kawa.standard.list"). Either the class must extend Syntax
(and have a default constructor), or the class must be a ModuleMody,
(whose apply0 () is expected to define the Syntax in the
global environment.
|
loaded | Syntax loaded(Code) | | The loaded syntax, or null if it has not yet been loaded.
|
AutoloadSyntax | public AutoloadSyntax()(Code) | | |
load | void load()(Code) | | Load the class named in className.
|
|
|