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.
 

Method Detail

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 autoloading
context - the context with which the name is accessed.