|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for reading patches in an abstract way and applying them
to patchable objects.
| Method Summary | |
void |
applyPatchAnonymous(java.lang.Object r,
java.lang.Object c)
|
boolean |
getDiffAsBoolean()
|
byte |
getDiffAsByte()
|
char |
getDiffAsChar()
|
double |
getDiffAsDouble()
|
float |
getDiffAsFloat()
|
int |
getDiffAsInt()
Reads the updated value, if a patch record is available. |
long |
getDiffAsLong()
|
java.lang.Object |
getDiffAsObject()
Reads the updated reference value, if the last call to hasDiff() returned true. |
short |
getDiffAsShort()
|
int |
getFromRank()
Experimental low-level API. |
UnmarshalStream |
getInput()
Experimental low-level API. |
boolean |
hasDiff()
Checks whether there is a patch record available for the next instance variable. |
| Method Detail |
public boolean hasDiff()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionPatchable.applyPatch(java.lang.Object, uka.patch.PatchInput)
public boolean getDiffAsBoolean()
throws java.io.IOException
java.io.IOExceptiongetDiffAsInt()
public byte getDiffAsByte()
throws java.io.IOException
java.io.IOExceptiongetDiffAsInt()
public char getDiffAsChar()
throws java.io.IOException
java.io.IOExceptiongetDiffAsInt()
public short getDiffAsShort()
throws java.io.IOException
java.io.IOExceptiongetDiffAsInt()
public int getDiffAsInt()
throws java.io.IOException
java.io.IOExceptionhasDiff(),
Patchable.applyPatch(java.lang.Object, uka.patch.PatchInput)
public float getDiffAsFloat()
throws java.io.IOException
java.io.IOExceptiongetDiffAsInt()
public long getDiffAsLong()
throws java.io.IOException
java.io.IOExceptiongetDiffAsInt()
public double getDiffAsDouble()
throws java.io.IOException
java.io.IOExceptiongetDiffAsInt()
public java.lang.Object getDiffAsObject()
throws java.io.IOException,
java.lang.ClassNotFoundException
hasDiff() returned true. The returned object
reference is assigned to the currently patched instance
variable of the patchable object and the
corresponding instance variable of its backup copy.
java.io.IOException
java.lang.ClassNotFoundException
public void applyPatchAnonymous(java.lang.Object r,
java.lang.Object c)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public UnmarshalStream getInput()
throws java.io.IOException
java.io.IOException
public int getFromRank()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||