|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field
ATField provides a mapping from an immutable name to a potentially mutable value.
Note that when field objects are added to an Object
and then that object is cloned,
the field object will be re-instantiated (i.e. its 'new' method is invoked).
This implies that any object implementing ATField should provide a meta_newInstance
method whose sole initarg is the new host for the field.
Method Summary | |
---|---|
Method |
accessor()
|
Method |
mutator()
|
Symbol |
name()
Returns a string by which the slot can be identified. |
Object |
readField()
Returns the current value of the field. |
Object |
writeField(Object newValue)
Sets the value of the field if possible. |
Methods inherited from interface edu.vub.at.objects.Object |
---|
super |
Method Detail |
---|
Symbol name()
Symbol
representing the string by which the slot can be identified.Object readField()
Object
representing the current value of the field.
XIllegalOperation
- if the field accessed is not found.Object writeField(Object newValue)
newValue
- the value the field should hold.
edu.vub.at.exceptions.InterpreterException
- if the field cannot be modified.Method accessor()
Method mutator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |