void (final GeneratorAdapter generator, final Object value) { Dimension dimension = (Dimension) value; generator.newInstance(myDimensionType); generator.dup(); generator.push(dimension.width); generator.push(dimension.height); generator.invokeConstructor(myDimensionType, myInitMethod); }