| java.lang.Object gnu.mapping.Procedure gnu.mapping.Procedure0 gnu.mapping.Location gnu.mapping.Binding
Method Summary | |
final public void | defineConstant(Object value) | final public void | defineValue(Object value) | public boolean | equals(Object o) Just tests for identity.
Otherwise hashTables that have Bindings as keys will break. | final public Object | get() | final public Object | get(Object defaultValue) | final public Constraint | getConstraint() | final public Environment | getEnvironment() | final public Object | getFunctionValue() Get value of "function binding" of a Binding. | final public Object | getFunctionValue(Object defaultValue) Get value of "function binding" of a Binding. | final public Object | getKey() | public Procedure | getProcedure() | final public Object | getValue() | public boolean | hasFunctionValue() | public int | hashCode() | public static Binding | hashDelete(Binding[] table, int log2Size, String key) Delete an entry from a hash table.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: key - the search key null if the was no matching element in the hash table;otherwise the old element. | public static Binding | hashGet(Binding[] table, int log2Size, String key) Find an entry in a hash table.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: key - the search key null if the was no matching element in the hash table;otherwise the matching element. | public static int | hashInsertAll(Binding[] tableDst, int log2SizeDst, Binding[] tableSrc, int log2SizeSrc) | public static int | hashSearch(Binding[] table, int log2Size, int mask, String key, int hash) Search a hash table using double hashing and open addressing.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: mask - must equal ((1 << log2Size) - 1) Parameters: key - the search key Parameters: hash - the hash of the search key the index of the element in table containing the match(such that table[index].getName()==key);if there is no such element, returns an indexsuch that (table[index]==null || tabel[index]==DELETED). | public static int | hashSearch(Binding[] table, int log2Size, String key) | public static Binding | hashSet(Binding[] table, int log2Size, Binding value) Set an entry in a hash table.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: value - the new entry null if the was no matching element in the hash table;otherwise the old match. | public boolean | isBound() | public static Binding | make(Object init, String name) | public static Binding | make(String name, Environment env) | public void | print(java.io.PrintWriter ps) | public void | readExternal(ObjectInput in) | public Object | readResolve() | public void | removeFunctionValue() | final public void | set(Object value) | final public void | setConstraint(Constraint constraint) | public void | setFunctionValue(Object value) | final public Object | setValue(Object value) | public String | toString() | public void | writeExternal(ObjectOutput out) |
FUNCTION | final static String FUNCTION(Code) | | Magic value used as a key for function bindings.
|
UNBOUND | final public static String UNBOUND(Code) | | Magic value used to indicate there is no property binding.
|
hashDELETED | final public static Binding hashDELETED(Code) | | Used to mark deleted elements in a hash table.
|
defineConstant | final public void defineConstant(Object value)(Code) | | |
defineValue | final public void defineValue(Object value)(Code) | | |
equals | public boolean equals(Object o)(Code) | | Just tests for identity.
Otherwise hashTables that have Bindings as keys will break.
|
getFunctionValue | final public Object getFunctionValue()(Code) | | Get value of "function binding" of a Binding.
Some languages (including Common Lisp and Emacs Lisp) associate both
a value binding and a function binding with a symbol.
exception: UnboundSymbol - if no function binding. |
getFunctionValue | final public Object getFunctionValue(Object defaultValue)(Code) | | Get value of "function binding" of a Binding.
Some languages (including Common Lisp and Emacs Lisp) associate both
a value binding and a function binding with a symbol.
Parameters: defaultValue - value to return if there is no function binding the function value, or defaultValue if no function binding. |
hasFunctionValue | public boolean hasFunctionValue()(Code) | | |
hashCode | public int hashCode()(Code) | | |
hashDelete | public static Binding hashDelete(Binding[] table, int log2Size, String key)(Code) | | Delete an entry from a hash table.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: key - the search key null if the was no matching element in the hash table;otherwise the old element. |
hashGet | public static Binding hashGet(Binding[] table, int log2Size, String key)(Code) | | Find an entry in a hash table.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: key - the search key null if the was no matching element in the hash table;otherwise the matching element. |
hashInsertAll | public static int hashInsertAll(Binding[] tableDst, int log2SizeDst, Binding[] tableSrc, int log2SizeSrc)(Code) | | |
hashSearch | public static int hashSearch(Binding[] table, int log2Size, int mask, String key, int hash)(Code) | | Search a hash table using double hashing and open addressing.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: mask - must equal ((1 << log2Size) - 1) Parameters: key - the search key Parameters: hash - the hash of the search key the index of the element in table containing the match(such that table[index].getName()==key);if there is no such element, returns an indexsuch that (table[index]==null || tabel[index]==DELETED). |
hashSet | public static Binding hashSet(Binding[] table, int log2Size, Binding value)(Code) | | Set an entry in a hash table.
Parameters: table - the hash table Parameters: log2Size - log2 of the (used) size of table Parameters: value - the new entry null if the was no matching element in the hash table;otherwise the old match. |
isBound | public boolean isBound()(Code) | | |
removeFunctionValue | public void removeFunctionValue()(Code) | | |
setFunctionValue | public void setFunctionValue(Object value)(Code) | | |
Methods inherited from gnu.mapping.Procedure | public void apply(Runnable ctx) throws Throwable(Code)(Java Doc) abstract public Object apply0() throws Throwable(Code)(Java Doc) abstract public Object apply1(Object arg1) throws Throwable(Code)(Java Doc) abstract public Object apply2(Object arg1, Object arg2) throws Throwable(Code)(Java Doc) abstract public Object apply3(Object arg1, Object arg2, Object arg3) throws Throwable(Code)(Java Doc) abstract public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable(Code)(Java Doc) abstract public Object applyN(Object[] args) throws Throwable(Code)(Java Doc) public static void checkArgCount(Procedure proc, int argCount)(Code)(Java Doc) public String getName()(Code)(Java Doc) public Object getProperty(Object key, Object defaultValue)(Code)(Java Doc) public Procedure getSetter()(Code)(Java Doc) final public int maxArgs()(Code)(Java Doc) final public int minArgs()(Code)(Java Doc) final public String name()(Code)(Java Doc) public int numArgs()(Code)(Java Doc) public Object removeProperty(Object key)(Code)(Java Doc) public void set0(Object result) throws Throwable(Code)(Java Doc) public void set1(Object arg1, Object value) throws Throwable(Code)(Java Doc) public void setN(Object[] args) throws Throwable(Code)(Java Doc) final public void setName(String name)(Code)(Java Doc) public synchronized void setProperty(Object key, Object value)(Code)(Java Doc) public static Object[] setProperty(Object[] properties, Object key, Object value)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|