|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpnuts.lang.Runtime
pnuts.compiler.DynamicRuntime
public class DynamicRuntime
| Nested Class Summary | |
|---|---|
protected static class |
DynamicRuntime.DynamicAccessor
|
| Nested classes/interfaces inherited from class pnuts.lang.Runtime |
|---|
Runtime.Accessor, Runtime.Break, Runtime.Continue, Runtime.FunctionSerializer, Runtime.TypeMap |
| Field Summary |
|---|
| Fields inherited from class pnuts.lang.Runtime |
|---|
BOOLEAN_SYMBOL, BYTE_SYMBOL, CHAR_SYMBOL, CLONE, DOUBLE_SYMBOL, EXCEPTOIN_FIELD_SYMBOL, FLOAT_SYMBOL, INT_SYMBOL, LONG_SYMBOL, SHORT_SYMBOL, VOID_SYMBOL |
| Constructor Summary | |
|---|---|
DynamicRuntime()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
_callConstructor(Context context,
java.lang.Class c,
java.lang.Object[] args,
java.lang.Class[] types)
Call a constructor |
protected java.lang.Object |
_callConstructor(Context context,
java.lang.Class c,
java.lang.Object[] args,
java.lang.Class[] types,
pnuts.compiler.CodeLoader codeLoader)
|
protected java.lang.Object |
_callMethod(Context context,
java.lang.Class c,
java.lang.String name,
java.lang.Object[] args,
java.lang.Class[] types,
java.lang.Object target)
call a method |
java.lang.Object |
getBeanProperty(java.lang.Object target,
java.lang.String name)
Gets a Bean property of the specified bean. |
protected java.lang.Object |
getBeanProperty(java.lang.Object target,
java.lang.String name,
java.lang.Class stopClass)
Gets a Bean property of the specified bean. |
java.lang.Class |
getBeanPropertyType(java.lang.Class cls,
java.lang.String name)
Gets the type of a bean property |
static PnutsFunction |
makeProxy(java.lang.reflect.Constructor cons)
This method maps a proxy object of a Constructor to a PnutsFunction. |
static PnutsFunction |
makeProxy(java.lang.reflect.Method method)
This method maps a proxy object of a Method to a PnutsFunction. |
void |
setBeanProperty(java.lang.Object target,
java.lang.String name,
java.lang.Object value)
Sets a Bean property of the specified bean. |
protected void |
setBeanProperty(java.lang.Object target,
java.lang.String name,
java.lang.Object value,
java.lang.Class stopClass)
Sets a Bean property of the specified bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicRuntime()
| Method Detail |
|---|
protected java.lang.Object _callMethod(Context context,
java.lang.Class c,
java.lang.String name,
java.lang.Object[] args,
java.lang.Class[] types,
java.lang.Object target)
_callMethod in class Runtimecontext - the contextc - the class of methodname - the method nameargs - the paramterstypes - the types of the formal argumentstarget - the target object
protected java.lang.Object _callConstructor(Context context,
java.lang.Class c,
java.lang.Object[] args,
java.lang.Class[] types)
Runtime
_callConstructor in class Runtimecontext - the context in which the constructor is calledc - the class of methodargs - the paramterstypes - the types of the formal arguments
protected java.lang.Object _callConstructor(Context context,
java.lang.Class c,
java.lang.Object[] args,
java.lang.Class[] types,
pnuts.compiler.CodeLoader codeLoader)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationExceptionpublic static PnutsFunction makeProxy(java.lang.reflect.Constructor cons)
cons - a constructor
public static PnutsFunction makeProxy(java.lang.reflect.Method method)
method - a method
public java.lang.Object getBeanProperty(java.lang.Object target,
java.lang.String name)
throws java.lang.IllegalAccessException
getBeanProperty in class Runtimetarget - the target beanname - the Bean property name
java.lang.IllegalAccessException
protected java.lang.Object getBeanProperty(java.lang.Object target,
java.lang.String name,
java.lang.Class stopClass)
throws java.lang.IllegalAccessException
getBeanProperty in class Runtimetarget - the target beanname - the Bean property namestopClass - the Introspector's "stopClass"
java.lang.IllegalAccessException
public void setBeanProperty(java.lang.Object target,
java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
setBeanProperty in class Runtimetarget - the target beanname - the Bean property namevalue - the new property value
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
protected void setBeanProperty(java.lang.Object target,
java.lang.String name,
java.lang.Object value,
java.lang.Class stopClass)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
setBeanProperty in class Runtimetarget - the target beanname - the Bean property namevalue - the new property valuestopClass - the Introspector's "stopClass"
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public java.lang.Class getBeanPropertyType(java.lang.Class cls,
java.lang.String name)
getBeanPropertyType in class Runtimecls - the class of the beanname - the property name of the bean property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||