InstructionFactory factory =
il.getDeclaringMethod().getInstructionFactory();
JiapiClass jc = getCurrentClass();
JiapiField field = null;
try {
field = jc.getDeclaredField(fieldName);
}
catch (NoSuchFieldException e) {
throw new JiapiRuntimeException("No such field: " + e.getMessage());
}
// Get the initialized value from Runtime.
il.add(factory.pushConstant(fieldName));
il.add(factory.invoke(getFieldValue));
// Cast the field.
il.add(factory.cast(field.getTypeName()));
// Set the field.
il.add(factory.setField(field));
forward(il);