Save This Page
Home » cglib-src-2.2 » net.sf.cglib.core » [javadoc | source]
net.sf.cglib.core
public class: EmitUtils [javadoc | source]
java.lang.Object
   net.sf.cglib.core.EmitUtils
Nested Class Summary:
public static class  EmitUtils.ArrayDelimiters   
Field Summary
public static final  EmitUtils.ArrayDelimiters DEFAULT_DELIMITERS     
Method from net.sf.cglib.core.EmitUtils Summary:
add_properties,   add_property,   append_string,   begin_method,   begin_method,   constructor_switch,   factory_method,   getSwitchKeys,   hash_code,   load_class,   load_class_this,   load_method,   method_switch,   not_equals,   null_constructor,   process_array,   process_arrays,   push_array,   push_object,   string_switch,   wrap_throwable,   wrap_undeclared_throwable
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.cglib.core.EmitUtils Detail:
 public static  void add_properties(ClassEmitter ce,
    String[] names,
    Type[] types) 
 public static  void add_property(ClassEmitter ce,
    String name,
    Type type,
    String fieldName) 
 public static  void append_string(CodeEmitter e,
    Type type,
    EmitUtils.ArrayDelimiters delims,
    Customizer customizer) 
 public static CodeEmitter begin_method(ClassEmitter e,
    MethodInfo method) 
 public static CodeEmitter begin_method(ClassEmitter e,
    MethodInfo method,
    int access) 
 public static  void constructor_switch(CodeEmitter e,
    List constructors,
    ObjectSwitchCallback callback) 
 public static  void factory_method(ClassEmitter ce,
    Signature sig) 
 static int[] getSwitchKeys(Map buckets) 
 public static  void hash_code(CodeEmitter e,
    Type type,
    int multiplier,
    Customizer customizer) 
 public static  void load_class(CodeEmitter e,
    Type type) 
 public static  void load_class_this(CodeEmitter e) 
 public static  void load_method(CodeEmitter e,
    MethodInfo method) 
 public static  void method_switch(CodeEmitter e,
    List methods,
    ObjectSwitchCallback callback) 
 public static  void not_equals(CodeEmitter e,
    Type type,
    Label notEquals,
    Customizer customizer) 
    Branches to the specified label if the top two items on the stack are not equal. The items must both be of the specified class. Equality is determined by comparing primitive values directly and by invoking the equals method for Objects. Arrays are recursively processed in the same manner.
 public static  void null_constructor(ClassEmitter ce) 
 public static  void process_array(CodeEmitter e,
    Type type,
    ProcessArrayCallback callback) 
    Process an array on the stack. Assumes the top item on the stack is an array of the specified type. For each element in the array, puts the element on the stack and triggers the callback.
 public static  void process_arrays(CodeEmitter e,
    Type type,
    ProcessArrayCallback callback) 
    Process two arrays on the stack in parallel. Assumes the top two items on the stack are arrays of the specified class. The arrays must be the same length. For each pair of elements in the arrays, puts the pair on the stack and triggers the callback.
 public static  void push_array(CodeEmitter e,
    Object[] array) 
 public static  void push_object(CodeEmitter e,
    Object obj) 
 public static  void string_switch(CodeEmitter e,
    String[] strings,
    int switchStyle,
    ObjectSwitchCallback callback) 
 public static  void wrap_throwable(Block block,
    Type wrapper) 
 public static  void wrap_undeclared_throwable(CodeEmitter e,
    Block handler,
    Type[] exceptions,
    Type wrapper)