private JMethod createSyntheticMethod(SourceInfo info, String name, JDeclaredType enclosingType, JType returnType, boolean isAbstract, boolean isStatic, boolean isFinal, AccessModifier access) { JMethod method = new JMethod(info, name, enclosingType, returnType, isAbstract, isStatic, isFinal, access); method.freezeParamTypes(); method.setSynthetic(); method.setBody(new JMethodBody(info)); enclosingType.addMethod(method); return method; }
method.setSynthetic(); enclosingType.addMethod(method); typeMap.setMethod(b, method);
AccessModifier.PRIVATE); enclosing.addMethod(getSingleton);
methodCall.getTarget().getEnclosingType().addMethod(newMethod); JMethodCall call = new JMethodCall(methodSource, null, newMethod);
methodCall.getTarget().getEnclosingType().addMethod(newMethod); final JMethodCall call = new JMethodCall(methodSource, null, newMethod);
typeMap.setMethod(jdtBridgeMethod, bridgeMethod); bridgeMethod.setBody(new JMethodBody(info)); curClass.type.addMethod(bridgeMethod); bridgeMethod.setSynthetic(); int paramIdx = 0;