|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.client.Entity
public class Entity
An Entity is a JEMMObject representation that allows low level access to the fields, methods and constructors. This interfaces implementations allows manipulation of a JEMMObject and have intricate knowledge of what the compiler has added to the JEMMObject entities.
| Constructor Summary | |
|---|---|
Entity(JEMMObject obj)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getField(FieldKey fkey)
Gets the field as it is on the JEMMObject, without consulting the ShadowMap |
FieldType |
getFieldType(FieldKey fKey)
Determines the Type of a field. |
ID |
getID()
Returns the ID of the JEMMObject as held by the ShadowObject |
ShadowData |
getShadowData()
|
ShadowObject |
getShadowObject()
Returns the referenced ShadowObject on the Enhanced Object referenced. |
ShadowUserObject |
getShadowUserObject()
Returns the referenced ShadowObject on the Enhanced Object referenced. |
int |
getVersion()
|
AttributeUse[] |
methodUses(Descriptor methodSignature)
Reads any Uses annotations on a method which define which fields should be initialised. |
void |
setField(FieldKey fkey,
java.lang.Object value)
Sets the field on the JEMMObject, without changing the ShadowMap. |
void |
setShadowObject(ShadowUserObject so)
Sets the ShadowObject that is defined on underlying object |
void |
setVersion(int newVersion)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Entity(JEMMObject obj)
| Method Detail |
|---|
public ShadowUserObject getShadowUserObject()
public ShadowObject getShadowObject()
public ShadowData getShadowData()
public int getVersion()
public void setVersion(int newVersion)
public void setShadowObject(ShadowUserObject so)
so - The new ShadowObjectpublic ID getID()
public void setField(FieldKey fkey,
java.lang.Object value)
className - The name of the class that declares the fieldfieldName - The name of the field to accessvalue - The value to set the field topublic java.lang.Object getField(FieldKey fkey)
className - fieldName - public FieldType getFieldType(FieldKey fKey)
fKey - The unique identifying key for a field
public AttributeUse[] methodUses(Descriptor methodSignature)
methodSignature - The method to read the annotations from./
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||