gnu.mapping

Class NameMap

Implemented Interfaces:
HasSetter, Named
Known Direct Subclasses:
Environment, Record

public abstract class NameMap
extends Procedure1
implements HasSetter

Method Summary

Object
apply1(Object arg)
Object
get(Object name)
Get the value bound to the given name.
abstract Object
get(String key, Object defaultValue)
Object
getChecked(String name)
Get the value bound to the given name.
abstract Object
put(String key, Object value)
void
set1(Object arg, Object value)

Methods inherited from class gnu.mapping.Procedure1

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Method Details

apply1

public Object apply1(Object arg)
Overrides:
apply1 in interface Procedure1

get

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

get

public abstract Object get(String key,
                           Object defaultValue)

getChecked

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

put

public abstract Object put(String key,
                           Object value)

set1

public void set1(Object arg,
                 Object value)
Overrides:
set1 in interface Procedure