gnu.mapping
Class NameMap

java.lang.Object
  extended by gnu.mapping.Procedure
      extended by gnu.mapping.Procedure1
          extended by gnu.mapping.NameMap
All Implemented Interfaces:
HasSetter, Named
Direct Known Subclasses:
Environment, Record

public abstract class NameMap
extends Procedure1
implements HasSetter


Constructor Summary
NameMap()
           
 
Method Summary
 java.lang.Object apply1(java.lang.Object arg)
           
 java.lang.Object get(java.lang.Object name)
          Get the value bound to the given name.
abstract  java.lang.Object get(java.lang.String key, java.lang.Object defaultValue)
           
 java.lang.Object getChecked(java.lang.String name)
          Get the value bound to the given name.
abstract  java.lang.Object put(java.lang.String key, java.lang.Object value)
           
 void set1(java.lang.Object arg, java.lang.Object value)
           
 
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gnu.mapping.HasSetter
getSetter
 

Constructor Detail

NameMap

public NameMap()
Method Detail

getChecked

public final java.lang.Object getChecked(java.lang.String name)
Get the value bound to the given name.

Throws:
UnboundLocationException - the name has no binding
See Also:
Environment.get(Object)

get

public java.lang.Object get(java.lang.Object name)
Get the value bound to the given name. Returns null if the name has no binding (for compatibility with Java2 Collections framework).

See Also:
getChecked(String)

get

public abstract java.lang.Object get(java.lang.String key,
                                     java.lang.Object defaultValue)

put

public abstract java.lang.Object put(java.lang.String key,
                                     java.lang.Object value)

apply1

public java.lang.Object apply1(java.lang.Object arg)
Specified by:
apply1 in class Procedure1

set1

public void set1(java.lang.Object arg,
                 java.lang.Object value)
Overrides:
set1 in class Procedure