FastMethod realMethod = assertNotNull(methodMappings.get(method), "unknown method: %s", method);
return realMethod.invoke(null, args);
}
} });
generator.setCallbackFilter(new CallbackFilter() {
public int accept(Method method) {
if (isEqualsMethod(method) || isHashCodeMethod(method)) {
return 0; // invoke super
} else if (isToStringMethod(method)) {
return 1; // invoke toString