else if (type == CtClass.doubleType)
return new DoubleMemberValue((Double) value, cp);
else if (type.getName().equals("java.lang.Class"))
return new ClassMemberValue(((Class<?>) value).getName(), cp);
else if (type.getName().equals("java.lang.String"))
return new StringMemberValue((String) value, cp);
else if (type.isArray()) {
CtClass arrayType = type.getComponentType();
int len = Array.getLength(value);
MemberValue[] members = new MemberValue[len];
for (int i = 0; i < len; i ++) {