}
}
public static void addPrivateAccessStubs(boolean useJSNIStubs, ClassStructureBuilder<?> classBuilder,
MetaConstructor m) {
DefParameters methodDefParms = DefParameters.from(m);
if (useJSNIStubs) {
classBuilder.publicMethod(m.getReturnType(), getPrivateMethodName(m))
.parameters(methodDefParms)
.modifiers(Modifier.Static, Modifier.JSNI)
.body()
._(new StringStatement(JSNIUtil.methodAccess(m)))
.finish();
}
else {
String cachedMethod = initCachedMethod(classBuilder, m);
Object[] args = new Object[methodDefParms.getParameters().size()];
int i = 0;
for (Parameter p : methodDefParms.getParameters()) {
args[i++] = Refs.get(p.getName());
}
BlockBuilder<? extends ClassStructureBuilder> body = classBuilder.publicMethod(m.getReturnType(),
getPrivateMethodName(m))