|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.runtime.ReflectionBase
public abstract class ReflectionBase
Base class for all reflective method invoker classes, contains utility
methods that are invoked to unwrap the reflective arguments. Also contains
invoke(RVMMethod, Object, Object[])
that is called to perform the reflective
method call.
Field Summary | |
---|---|
static ReflectionBase |
nullInvoker
Reflective method invoker that performs no invocation |
Constructor Summary | |
---|---|
ReflectionBase()
|
Method Summary | |
---|---|
protected static Object |
boxAsBoolean(boolean b)
Wrap result as boolean |
protected static Object |
boxAsByte(byte b)
Wrap result as byte |
protected static Object |
boxAsChar(char c)
Wrap result as char |
protected static Object |
boxAsDouble(double d)
Wrap result as double |
protected static Object |
boxAsFloat(float f)
Wrap result as float |
protected static Object |
boxAsInt(int i)
Wrap result as int |
protected static Object |
boxAsLong(long l)
Wrap result as long |
protected static Object |
boxAsShort(short s)
Wrap result as short |
Object |
invoke(RVMMethod method,
Object obj,
Object[] args)
Invoke reflective method being wrapped by this object |
abstract Object |
invokeInternal(Object obj,
Object[] args)
Invoke reflective method being wrapped by this object, internal method specific part. |
private static void |
throwIllegalArgumentException()
Throw error with argument |
protected static boolean |
unboxAsBoolean(Object obj)
Unwrap boolean for call |
protected static byte |
unboxAsByte(Object obj)
Unwrap boolean for call |
protected static char |
unboxAsChar(Object obj)
Unwrap char for call |
protected static double |
unboxAsDouble(Object obj)
Unwrap double for call |
protected static float |
unboxAsFloat(Object obj)
Unwrap float for call |
protected static int |
unboxAsInt(Object obj)
Unwrap int for call |
protected static long |
unboxAsLong(Object obj)
Unwrap long for call |
protected static short |
unboxAsShort(Object obj)
Unwrap short for call |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ReflectionBase nullInvoker
Constructor Detail |
---|
public ReflectionBase()
Method Detail |
---|
private static void throwIllegalArgumentException() throws IllegalArgumentException
IllegalArgumentException
protected static boolean unboxAsBoolean(Object obj)
protected static Object boxAsBoolean(boolean b)
protected static byte unboxAsByte(Object obj)
protected static Object boxAsByte(byte b)
protected static short unboxAsShort(Object obj)
protected static Object boxAsShort(short s)
protected static char unboxAsChar(Object obj)
protected static Object boxAsChar(char c)
protected static int unboxAsInt(Object obj)
protected static Object boxAsInt(int i)
protected static long unboxAsLong(Object obj)
protected static Object boxAsLong(long l)
protected static float unboxAsFloat(Object obj)
protected static Object boxAsFloat(float f)
protected static double unboxAsDouble(Object obj)
protected static Object boxAsDouble(double d)
public abstract Object invokeInternal(Object obj, Object[] args)
obj
- object for virtual method invocationargs
- arguments to method call
public final Object invoke(RVMMethod method, Object obj, Object[] args)
obj
- object for virtual method invocationargs
- arguments to method call
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |