add_properties
public static void add_properties(ClassEmitter ce,
String[] names,
Type[] types)
add_property
public static void add_property(ClassEmitter ce,
String name,
Type type,
String fieldName)
load_class
public static void load_class(CodeEmitter e,
Type type)
load_class_this
public static void load_class_this(CodeEmitter e)
not_equals
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.
null_constructor
public static void null_constructor(ClassEmitter ce)
process_array
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.
type
- the type of the array (type.isArray() must be true)callback
- the callback triggered for each element
process_arrays
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.
type
- the type of the arrays (type.isArray() must be true)callback
- the callback triggered for each pair of elements
push_array
public static void push_array(CodeEmitter e,
Object[] array)
push_object
public static void push_object(CodeEmitter e,
Object obj)
wrap_throwable
public static void wrap_throwable(Block block,
Type wrapper)
wrap_undeclared_throwable
public static void wrap_undeclared_throwable(CodeEmitter e,
Block handler,
Type[] exceptions,
Type wrapper)