|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ClassWriter | |
---|---|
org.drools.asm | Provides a small and fast bytecode manipulation framework. |
org.drools.asm.attrs | Provides an implementation for optional class, field and method attributes. |
org.drools.base |
Uses of ClassWriter in org.drools.asm |
---|
Methods in org.drools.asm with parameters of type ClassWriter | |
---|---|
protected ByteVector |
Attribute.write(ClassWriter cw,
byte[] code,
int len,
int maxStack,
int maxLocals)
Returns the byte array form of this attribute. |
Uses of ClassWriter in org.drools.asm.attrs |
---|
Methods in org.drools.asm.attrs with parameters of type ClassWriter | |
---|---|
protected ByteVector |
StackMapTableAttribute.write(ClassWriter cw,
byte[] code,
int len,
int maxStack,
int maxLocals)
|
protected ByteVector |
StackMapAttribute.write(ClassWriter cw,
byte[] code,
int len,
int maxStack,
int maxLocals)
|
Uses of ClassWriter in org.drools.base |
---|
Methods in org.drools.base with parameters of type ClassWriter | |
---|---|
protected static void |
ShadowProxyFactory.buildClassHeader(Class clazz,
String className,
ClassWriter cw)
Builds the shadow proxy class header |
protected static void |
ClassFieldExtractorFactory.buildClassHeader(Class superClass,
String className,
ClassWriter cw)
Builds the class header |
protected static void |
ShadowProxyFactory.buildDelegateMethod(Method method,
Class clazz,
String className,
ClassWriter cw)
|
protected static void |
ShadowProxyFactory.buildEquals(ClassWriter cw,
String className,
Class clazz,
Map fieldTypes)
|
protected static void |
ShadowProxyFactory.buildField(String name,
String type,
ClassWriter cw)
Creates the field defined by the given FieldDefinition |
protected static void |
ClassFieldExtractorFactory.buildGetMethod(Class originalClass,
String className,
Class superClass,
Method getterMethod,
ClassWriter cw)
Creates the proxy reader method for the given method |
protected static void |
ShadowProxyFactory.buildGetMethod(String fieldName,
Class fieldType,
String fieldFlag,
Method method,
String className,
Class clazz,
ClassWriter cw)
Creates the proxy reader method for the given method |
protected static void |
ShadowProxyFactory.buildHashCode(ClassWriter cw,
String className,
Class clazz,
Map fieldTypes)
Sample of generated code for all primitive + object types public int hashCode() { if( ___hashCache != 0 ) { return __hashCache; } final int PRIME = 31; int result = 1; result = PRIME * result + (booleanAttr ? 1231 : 1237); result = PRIME * result + charAttr; long temp = Double.doubleToLongBits( doubleAttr ); result = PRIME * result + (int) (temp ^ (temp >>> 32)); result = PRIME * result + Float.floatToIntBits( floatAttr ); result = PRIME * result + intAttr; result = PRIME * result + ((listAttr == null) ? 0 : listAttr.hashCode()); result = PRIME * result + (int) (longAttr ^ (longAttr >>> 32)); result = PRIME * result + shortAttr; return result; } |
protected static void |
ShadowProxyFactory.buildSimpleGetMethod(String fieldName,
Class fieldType,
Method method,
String className,
Class clazz,
ClassWriter cw)
Creates the proxy reader method for the given method |
protected static void |
ShadowProxyFactory.buildUpdateProxyMethod(Map fieldTypes,
String className,
ClassWriter cw)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |