pnuts.lang
Interface AutoloadHook
- public interface AutoloadHook
This interface defines how to find the value of a undefined variable.
Instances of this interface can be registered with
PnutsFunction.autoload(String name, AutoloadHook loadHook).
Method Summary |
void |
load(java.lang.String name,
Context context)
When a registered name is first accessed, this method of a
corresponding AutoloadHook object is called. |
load
public void load(java.lang.String name,
Context context)
- When a registered name is first accessed, this method of a
corresponding AutoloadHook object is called.
- Parameters:
name
- the name to be defined by autoloadingcontext
- the context with which the name is accessed.