| |
|
| java.lang.Object java.lang.Package pnuts.ext.CompositePackage
CompositePackage | public class CompositePackage extends Package (Code) | | Composed hierarchical names space based on a Package.
A read access first looks for the symbol in the local symbol table, if not
found, then looks for the base package.
A write access never affect the base package.
|
CompositePackage | public CompositePackage()(Code) | | |
CompositePackage | public CompositePackage(Package base)(Code) | | Constructor
Parameters: base - the base package |
getBasePackage | public Package getBasePackage()(Code) | | Gets the base package
|
lookup | public NamedValue lookup(String symbol, Context context)(Code) | | First looks for the symbol in the local symbol table. If not found looks
for the symbol in the base package.
Parameters: symbol - the symbol to look for Parameters: context - the context the pnuts.lang.NamedValue object that holds the value of thesymbol if it exists. null, otherwise. |
lookup | public NamedValue lookup(String symbol)(Code) | | Looks for a name-value binding in the symbol table chain.
Parameters: symbol - the name of the variable, which must be intern'd the value |
newInstance | public Package newInstance(String name)(Code) | | Creates a sub-package
Parameters: name - the name of the sub-package |
|
|
|