Пример #1
0
 public static void createEmptyArray(GeneratorAdapter adapter) {
   adapter.newInstance(Types.ARRAY_IMPL);
   adapter.dup();
   adapter.invokeConstructor(Types.ARRAY_IMPL, Switch.INIT);
 }
Пример #2
0
 public static void createEmptyStruct(GeneratorAdapter adapter) {
   adapter.newInstance(Types.STRUCT_IMPL);
   adapter.dup();
   adapter.invokeConstructor(Types.STRUCT_IMPL, Page.INIT_STRUCT_IMPL);
 }