public interface DeserializationKernel
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission java.io.SerializablePermission "enableSubclassImplementation";
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
allocateNewObject(java.lang.Class c,
java.lang.Class base)
This class allocates an instance of a class.
|
void |
setBooleanField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
boolean v)
Set the member field of a class instance.
|
void |
setByteField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
byte v)
Set the member field of a class instance.
|
void |
setCharField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
char v)
Set the member field of a class instance.
|
void |
setDoubleField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
double v)
Set the member field of a class instance.
|
void |
setFloatField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
float v)
Set the member field of a class instance.
|
void |
setIntField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
int v)
Set the member field of a class instance.
|
void |
setLongField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
long v)
Set the member field of a class instance.
|
void |
setObjectField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
java.lang.Object v)
Set the member field of a class instance.
|
void |
setShortField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
short v)
Set the member field of a class instance.
|
java.lang.Object allocateNewObject(java.lang.Class c,
java.lang.Class base)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
c - The class to allocate memory for.base - The enclosing class when c is a non-static inner class.java.lang.InstantiationException - When the object can be instantiated.java.lang.IllegalAccessException - When the object can't be accessed.void setObjectField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
java.lang.Object v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setBooleanField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
boolean v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setByteField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
byte v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setCharField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
char v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setShortField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
short v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setIntField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
int v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setLongField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
long v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setFloatField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
float v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.void setDoubleField(java.lang.Class c,
java.lang.String n,
java.lang.Object o,
double v)
c - The type of the class.n - The name of the member field.o - The instance of the class c.v - The value to assign to the field n on instance o.