com.threerings.presents.dobj
Class Accessor.ByField
java.lang.Object
com.threerings.presents.dobj.Accessor
com.threerings.presents.dobj.Accessor.ByField
- All Implemented Interfaces:
- Comparable<Accessor>
- Enclosing class:
- Accessor
public static class Accessor.ByField
- extends Accessor
An accessor that assumes DObject fields are public Java fields.
| Fields inherited from class com.threerings.presents.dobj.Accessor |
name |
|
Method Summary |
Object |
get(DObject obj)
Gets the current value of this attribute. |
void |
set(DObject obj,
Object value)
Updates the current value of this attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
public final Field field
Accessor.ByField
public Accessor.ByField(Field field)
get
public Object get(DObject obj)
- Description copied from class:
Accessor
- Gets the current value of this attribute.
- Specified by:
get in class Accessor
set
public void set(DObject obj,
Object value)
- Description copied from class:
Accessor
- Updates the current value of this attribute.
- Specified by:
set in class Accessor