Used to implement Lisp-style "property lists".
A PropertyLocation is a location whose value is the
car of a property list.
This class also contains a number of static methods useful for
working with property lists.
Set the property list assocated with an object in a given Environment.
This function should be avoided, since a Symbol's property list may
be used by unknown classes. It also can be slow.
Parameters:
symbol - Usually but not necessarily a Symbol.
(A String is not converted a Symbol by this method.)
setPropertyList
public staticvoidsetPropertyList(Object symbol,
Object plist)
Set the property list assocated with an object in a given Environment.
Corresponds to Common Lisp's (setf symbol-plist) function.
symbol - Usually a Symbol, but can be any
Object. A String is converted to a
Symbol using env.getSymbol().
Symbols require a constant-type hash lookup; other object
are searched linearly.