} else if (type.isAnnotation()) {
return new AnnotationMemberValue(createJavassistAnnotation((java.lang.annotation.Annotation) val, cp), cp);
} else if (type.isArray()) {
Class<?> arrayType = type.getComponentType();
int length = Array.getLength(val);
MemberValue arrayval = createEmptyMemberValue(arrayType, cp);
ArrayMemberValue ret = new ArrayMemberValue(arrayval, cp);
MemberValue[] vals = new MemberValue[length];
for (int i = 0; i < length; ++i) {
vals[i] = createMemberValue(arrayType, Array.get(val, i), cp);
}