|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.proxy.impl.JFieldHelper
public class JFieldHelper
This class is used by the DefaultJProxyFactory object when this later dynamically creates a proxy Class object for an object allocated in the Corosol heap. In those proxy Class object, all the getfield and putfield byte code instructions are replaced by ainvokestatic instruction calling a static method of the JFieldHelper class :
| Constructor Summary | |
|---|---|
JFieldHelper()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
get(JProxy proxy,
int index)
Returns the object field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static boolean |
getBoolean(JProxy proxy,
int index)
Returns the boolean field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static byte |
getByte(JProxy proxy,
int index)
Returns the byte field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static char |
getChar(JProxy proxy,
int index)
Returns the char field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static double |
getDouble(JProxy proxy,
int index)
Returns the double field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static float |
getFloat(JProxy proxy,
int index)
Returns the float field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static int |
getInt(JProxy proxy,
int index)
Returns the int field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static long |
getLong(JProxy proxy,
int index)
Returns the long field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static short |
getShort(JProxy proxy,
int index)
Returns the short field value of the class instance allocated in the Corosol JVM heap and nested by the specified proxy object. |
static void |
set(JProxy proxy,
java.lang.Object obj,
int index)
Sets the object field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the reference of o. |
static void |
setBoolean(JProxy proxy,
boolean value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified boolean value. |
static void |
setByte(JProxy proxy,
byte value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified byte value. |
static void |
setChar(JProxy proxy,
char value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified char value. |
static void |
setDouble(JProxy proxy,
double value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified double value. |
static void |
setFloat(JProxy proxy,
float value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified float value. |
static void |
setInt(JProxy proxy,
int value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified int value. |
static void |
setLong(JProxy proxy,
long value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified long value. |
static void |
setShort(JProxy proxy,
short value,
int index)
Sets the field of the class instance nested by the specified proxy object and allocated in the Corosol JVM heap with the specified short value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFieldHelper()
| Method Detail |
|---|
public static java.lang.Object get(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static int getInt(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static long getLong(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static float getFloat(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static double getDouble(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static boolean getBoolean(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static byte getByte(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static char getChar(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static short getShort(JProxy proxy,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapindex - the getfield instruction operand
public static void set(JProxy proxy,
java.lang.Object obj,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapobj - the new value of the resolved fieldindex - the putfield instruction operand
public static void setInt(JProxy proxy,
int value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new int value of the resolved fieldindex - the putfield instruction operand
public static void setLong(JProxy proxy,
long value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new long value of the resolved fieldindex - the putfield instruction operand
public static void setFloat(JProxy proxy,
float value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new float value of the resolved fieldindex - the putfield instruction operand
public static void setDouble(JProxy proxy,
double value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new double value of the resolved fieldindex - the putfield instruction operand
public static void setBoolean(JProxy proxy,
boolean value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new boolean value of the resolved fieldindex - the putfield instruction operand
public static void setByte(JProxy proxy,
byte value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new byte value of the resolved fieldindex - the putfield instruction operand
public static void setChar(JProxy proxy,
char value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new char value of the resolved fieldindex - the putfield instruction operand
public static void setShort(JProxy proxy,
short value,
int index)
proxy - a proxy object nesting a class instance allocated in the
Corosol JVM heapvalue - the new short value of the resolved fieldindex - the putfield instruction operand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||