sleep.taint
Class TaintHash

java.lang.Object
  extended by sleep.taint.TaintHash
All Implemented Interfaces:
Serializable, ScalarHash

public class TaintHash
extends Object
implements ScalarHash

This class is used to wrap read-only hashes

See Also:
Serialized Form

Field Summary
protected  ScalarHash source
           
 
Constructor Summary
TaintHash(ScalarHash src)
           
 
Method Summary
 Scalar getAt(Scalar key)
          Retrieves a scalar from the hashtable.
 Map getData()
          Return the data structure backing this hash please
 ScalarArray keys()
          this operation is kind of expensive...
 void remove(Scalar key)
          Removes the specified scalar from the hashmap.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected ScalarHash source
Constructor Detail

TaintHash

public TaintHash(ScalarHash src)
Method Detail

getAt

public Scalar getAt(Scalar key)
Description copied from interface: ScalarHash
Retrieves a scalar from the hashtable. If a scalar key does not exist then the key should be created with a value of $null. This $null or empty scalar value should be returned by the function. This is how values are added to Scalar hashes.

Specified by:
getAt in interface ScalarHash

keys

public ScalarArray keys()
this operation is kind of expensive... should be fixed up to take care of that

Specified by:
keys in interface ScalarHash

remove

public void remove(Scalar key)
Description copied from interface: ScalarHash
Removes the specified scalar from the hashmap. :)

Specified by:
remove in interface ScalarHash

getData

public Map getData()
Description copied from interface: ScalarHash
Return the data structure backing this hash please

Specified by:
getData in interface ScalarHash

toString

public String toString()
Overrides:
toString in class Object