org.omegahat.Interfaces.NativeInterface
Class NamedReference

java.lang.Object
  |
  +--org.omegahat.Interfaces.NativeInterface.InterfaceReference
        |
        +--org.omegahat.Interfaces.NativeInterface.NamedReference
All Implemented Interfaces:
org.omegahat.Environment.Language.Evaluable

public class NamedReference
extends InterfaceReference

This class represents a named variable stored in the InterfaceManager's default database. When evaluated, the value of the variable identified by this reference is returned.

See Also:
InterfaceReference

Fields inherited from class org.omegahat.Interfaces.NativeInterface.InterfaceReference
className, database, key, manager
 
Constructor Summary
NamedReference(java.lang.String key, OmegaInterfaceManager manager)
          Create the reference for the object indexed by the given key, controlled by the given manager and stored in the manager's defalt database.
NamedReference(java.lang.String key, OmegaInterfaceManager manager, org.omegahat.Environment.Databases.Database db, java.lang.String className)
          Create a reference to the object assigned to the specified database using the variable name key and controlled by the InterfaceManager.
 
Methods inherited from class org.omegahat.Interfaces.NativeInterface.InterfaceReference
database, database, eval, eval, getClassName, key, key, manager, manager, setClassName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedReference

public NamedReference(java.lang.String key,
                      OmegaInterfaceManager manager,
                      org.omegahat.Environment.Databases.Database db,
                      java.lang.String className)
Create a reference to the object assigned to the specified database using the variable name key and controlled by the InterfaceManager.
Parameters:
key -  
InterfaceManager -  
db - the Database for which the key resolves the associated object.

NamedReference

public NamedReference(java.lang.String key,
                      OmegaInterfaceManager manager)
Create the reference for the object indexed by the given key, controlled by the given manager and stored in the manager's defalt database.
Parameters:
key - the name of the object, as assigned to the manager's default database
manager - the InterfaceManager which controls the object and in whose default database the object is stored.