| java.lang.Object java.lang.Runtime pnuts.compiler.DynamicRuntime
Inner Class :static class ProxyCache | |
Inner Class :abstract static class MethodFinder | |
Inner Class :static class Java2MethodFinder extends MethodFinder | |
Inner Class :static class BeanInfoParam | |
Inner Class :protected static class DynamicAccessor extends pnuts.lang.Runtime.Accessor | |
Method Summary | |
protected Object | _callConstructor(Context context, Class c, Object args, Class types) | protected Object | _callConstructor(Context context, Class c, Object args, Class types, CodeLoader codeLoader) | protected Object | _callMethod(Context context, Class c, String name, Object args, Class types, Object target) | protected Object | _getField(Context context, Class c, String name, Object target) | Object | _getField(Context context, Class c, String name, Object target, CodeLoader codeLoader) | protected void | _putField(Context context, Class c, String name, Object target, Object value) | void | _putField(Context context, Class c, String name, Object target, Object value, CodeLoader codeLoader) | Object | callMethod(Context context, Class c, String name, Object args, Class types, Object target, CodeLoader codeLoader) | static void | createMethodMap(ObjectDesc d, Map readMethods, Map writeMethods) | static DynamicProxy | createReflectionProxy(Class cls, String name, Class stopClass) | public Object | getBeanProperty(Object target, String name) Gets a Bean property of the specified bean. | protected Object | getBeanProperty(Object target, String name, Class stopClass) Gets a Bean property of the specified bean. | public Class | getBeanPropertyType(Class cls, String name) | static ClassLoader | getClassLoader(Class clazz) | public static PnutsFunction | makeProxy(Constructor cons) This method maps a proxy object of a Constructor to a PnutsFunction. | public static PnutsFunction | makeProxy(Method method) This method maps a proxy object of a Method to a PnutsFunction. | public void | setBeanProperty(Object target, String name, Object value) Sets a Bean property of the specified bean. | protected void | setBeanProperty(Object target, String name, Object value, Class stopClass) Sets a Bean property of the specified bean. |
hasCollection | static boolean hasCollection(Code) | | |
methodFinder | static MethodFinder methodFinder(Code) | | |
getBeanProperty | public Object getBeanProperty(Object target, String name) throws IllegalAccessException(Code) | | Gets a Bean property of the specified bean.
Parameters: target - the target bean Parameters: name - the Bean property name |
getBeanProperty | protected Object getBeanProperty(Object target, String name, Class stopClass) throws IllegalAccessException(Code) | | Gets a Bean property of the specified bean.
Parameters: target - the target bean Parameters: name - the Bean property name Parameters: stopClass - the Introspector's "stopClass" |
getBeanPropertyType | public Class getBeanPropertyType(Class cls, String name)(Code) | | Gets the type of a bean property
Parameters: cls - the class of the bean Parameters: name - the property name of the bean property the type of the property |
makeProxy | public static PnutsFunction makeProxy(Constructor cons)(Code) | | This method maps a proxy object of a Constructor to a PnutsFunction.
Call of the resulting function is faster than reflection API calls.
Parameters: cons - a constructor an instance the constructor creates. |
makeProxy | public static PnutsFunction makeProxy(Method method)(Code) | | This method maps a proxy object of a Method to a PnutsFunction.
Call of the resulting function is expected to be faster than
reflection API calls.
Parameters: method - a method the result of the 'method' call. |
setBeanProperty | protected void setBeanProperty(Object target, String name, Object value, Class stopClass) throws IllegalAccessException, InvocationTargetException(Code) | | Sets a Bean property of the specified bean.
Parameters: target - the target bean Parameters: name - the Bean property name Parameters: value - the new property value Parameters: stopClass - the Introspector's "stopClass" |
|
|