// add a field, field has same name as get method
int fieldModifiers = Modifier.PRIVATE;
if (staticField)
fieldModifiers |= Modifier.STATIC;
ClassMember field = classHold.addMember(getter, vmType, fieldModifiers);
int cpi = classHold.addFieldReference(field);
/*
** add the get method
*/
String sig = BCMethodDescriptor.get(BCMethodDescriptor.EMPTY, vmType, factory);
ClassMember method = classHold.addMember(getter, sig, methodModifers);
CodeChunk chunk = new CodeChunk(this);
// load 'this' if required
if (!staticField)