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; }
getSingleton.setSynthetic(); info.addCorrelation(info.getCorrelator().by(getSingleton));
bridgeMethod.setBody(new JMethodBody(info)); curClass.type.addMethod(bridgeMethod); bridgeMethod.setSynthetic(); int paramIdx = 0; List<JParameter> implParams = implmeth.getParams();