|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.isi.stella.Stella_Object edu.isi.stella.StandardObject edu.isi.stella.AbstractCollection edu.isi.stella.AbstractDictionary edu.isi.stella.Dictionary edu.isi.stella.PropertyList
public class PropertyList
Field Summary | |
---|---|
Cons |
thePlist
|
Constructor Summary | |
---|---|
PropertyList()
|
Method Summary | |
---|---|
static Stella_Object |
accessPropertyListSlotValue(PropertyList self,
Symbol slotname,
Stella_Object value,
boolean setvalueP)
|
AbstractIterator |
allocateIterator()
|
void |
clear()
Make self an empty property list. |
PropertyList |
copy()
Return a copy of the list self . |
boolean |
emptyP()
|
int |
equalHashCode()
Return an equalP hash code for self . |
void |
initializeObject()
|
void |
insertAt(Stella_Object key,
Stella_Object value)
Insert the entry < key , value > into the property list self . |
int |
length()
|
Stella_Object |
lookup(Stella_Object key)
|
Stella_Object |
lookupWithDefault(Stella_Object key,
Stella_Object renamed_Default)
Lookup key in self and return the result. |
static PropertyList |
newPropertyList()
|
boolean |
nonEmptyP()
|
boolean |
objectEqualP(Stella_Object y)
Return TRUE if x and y represent the same set of key/value pairs.. |
static KeyValueList |
plistToKvlist(PropertyList self)
Convert self into a key-value list with identical and identically
ordered keys and values. |
Surrogate |
primaryType()
Returns the primary type of self . |
void |
printObject(java.io.PrintStream stream)
|
Stella_Object |
removeAt(Stella_Object key)
Remove the entry that matches the key key . |
Methods inherited from class edu.isi.stella.AbstractDictionary |
---|
dictionary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Cons thePlist
Constructor Detail |
---|
public PropertyList()
Method Detail |
---|
public static PropertyList newPropertyList()
public static KeyValueList plistToKvlist(PropertyList self)
self
into a key-value list with identical and identically
ordered keys and values.
self
-
public AbstractIterator allocateIterator()
allocateIterator
in class Dictionary
public int equalHashCode()
equalP
hash code for self
. Note that this
is O(N) in the number of entries of self
.
equalHashCode
in class Stella_Object
public boolean objectEqualP(Stella_Object y)
x
and y
represent the same set of key/value pairs..
objectEqualP
in class Stella_Object
y
-
public void clear()
self
an empty property list.
public PropertyList copy()
self
. The conses in the copy are
freshly allocated.
public boolean nonEmptyP()
public boolean emptyP()
public Stella_Object removeAt(Stella_Object key)
key
. Return the
value of the matching entry, or NULL if there is no matching entry. Assumes that at
most one entry matches key
.
key
-
public void insertAt(Stella_Object key, Stella_Object value)
key
, value
> into the property list self
.
If a previous entry existed with key key
, that entry is replaced.
insertAt
in class Dictionary
key
- value
- public int length()
length
in class AbstractCollection
public Stella_Object lookupWithDefault(Stella_Object key, Stella_Object renamed_Default)
key
in self
and return the result.
Return renamed_Default
if no value was found.
key
- renamed_Default
-
public Stella_Object lookup(Stella_Object key)
lookup
in class Dictionary
public void initializeObject()
public void printObject(java.io.PrintStream stream)
printObject
in class Stella_Object
public static Stella_Object accessPropertyListSlotValue(PropertyList self, Symbol slotname, Stella_Object value, boolean setvalueP)
public Surrogate primaryType()
Stella_Object
self
.
Gets defined automatically for every non-abstract subclass of OBJECT.
primaryType
in class Stella_Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |