| java.lang.Object org.drools.base.ShadowProxyFactory
ShadowProxyFactory | public class ShadowProxyFactory (Code) | | A factory for ShadowProxy classes
|
Inner Class :static class ByteArrayClassLoader extends ClassLoader | |
Method Summary | |
protected static void | buildClassHeader(Class clazz, String className, ClassWriter cw) | protected static void | buildCollectionEquals(ClassWriter cw, String className, Class clazz) | protected static void | buildCollectionUpdateProxyMethod(Class clazz, String className, ClassWriter cw) | protected static void | buildDelegateMethod(Method method, Class clazz, String className, ClassWriter cw) | protected static void | buildEquals(ClassWriter cw, String className, Class clazz, Map fieldTypes) | protected static void | buildField(String name, String type, ClassWriter cw) | protected static void | buildGetMethod(String fieldName, Class fieldType, String fieldFlag, Method method, String className, Class clazz, ClassWriter cw) | protected static void | buildHashCode(ClassWriter cw, String className, Class clazz, Map fieldTypes) | protected static void | buildMapUpdateProxyMethod(Class clazz, String className, ClassWriter cw) | protected static void | buildSetShadowedObject(Class clazz, String className, Method setShadowed, ClassWriter cw) | protected static void | buildSimpleGetMethod(String fieldName, Class fieldType, Method method, String className, Class clazz, ClassWriter cw) | protected static void | buildUpdateProxyMethod(Map fieldTypes, String className, ClassWriter cw) | protected static byte[] | dump(Class clazz, String className) | public static String | getInternalProxyClassNameForClass(Class clazz) | public static Class | getProxy(Class clazz) | public static byte[] | getProxyBytes(Class clazz) | public static String | getProxyClassNameForClass(Class clazz) | protected static boolean | isPossibleToGenerateTheProxyFor(Class clazz) |
DELEGATE_FIELD_NAME | final public static String DELEGATE_FIELD_NAME(Code) | | |
FIELD_SET_FLAG | final public static String FIELD_SET_FLAG(Code) | | |
HASHCACHE_FIELD_NAME | final public static String HASHCACHE_FIELD_NAME(Code) | | |
buildClassHeader | protected static void buildClassHeader(Class clazz, String className, ClassWriter cw)(Code) | | Builds the shadow proxy class header
Parameters: clazz - The class to build shadow proxy for Parameters: className - The shadow proxy class name Parameters: cw - |
buildCollectionUpdateProxyMethod | protected static void buildCollectionUpdateProxyMethod(Class clazz, String className, ClassWriter cw)(Code) | | Creates an update proxy method for Map classes
public void updateProxy() {
this.clear();
this.addAll( this.delegate );
}
Parameters: clazz - Parameters: className - Parameters: cw - |
buildField | protected static void buildField(String name, String type, ClassWriter cw)(Code) | | Creates the field defined by the given FieldDefinition
Parameters: cw - Parameters: fieldDef - |
buildGetMethod | protected static void buildGetMethod(String fieldName, Class fieldType, String fieldFlag, Method method, String className, Class clazz, ClassWriter cw)(Code) | | Creates the proxy reader method for the given method
Parameters: fieldName - Parameters: fieldFlag - Parameters: method - Parameters: cw - |
buildHashCode | protected static void buildHashCode(ClassWriter cw, String className, Class clazz, Map fieldTypes)(Code) | | Sample of generated code for all primitive + object types
public int hashCode() {
if( ___hashCache == 0 ) {
__hashCache = this.delegate.hashCode();
}
return this.__hashCache;
}
Parameters: cw - Parameters: className - Parameters: clazz - Parameters: fieldTypes - |
buildMapUpdateProxyMethod | protected static void buildMapUpdateProxyMethod(Class clazz, String className, ClassWriter cw)(Code) | | Creates an update proxy method for Map classes
public void updateProxy() {
this.clear();
this.putAll( this.delegate );
}
Parameters: clazz - Parameters: className - Parameters: cw - |
buildSimpleGetMethod | protected static void buildSimpleGetMethod(String fieldName, Class fieldType, Method method, String className, Class clazz, ClassWriter cw)(Code) | | Creates the proxy reader method for the given method
Parameters: fieldName - Parameters: fieldFlag - Parameters: method - Parameters: cw - |
getInternalProxyClassNameForClass | public static String getInternalProxyClassNameForClass(Class clazz)(Code) | | Parameters: clazz - |
getProxyBytes | public static byte[] getProxyBytes(Class clazz)(Code) | | |
getProxyClassNameForClass | public static String getProxyClassNameForClass(Class clazz)(Code) | | |
isPossibleToGenerateTheProxyFor | protected static boolean isPossibleToGenerateTheProxyFor(Class clazz) throws Exception(Code) | | |
|
|