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; }
new JMethod(info, intern(b.selector), enclosingType, typeMap.get(b.returnType), b .isAbstract(), b.isStatic(), b.isFinal(), AccessModifier.fromMethodBinding(b));
getSingleton = new JMethod(info, targetName, enclosing, type, false, true, true, AccessModifier.PRIVATE);
JMethod newMethod = new JMethod(methodSource, "enhanceAll", methodCall.getTarget().getEnclosingType(), ast.getProgram().getTypeVoid(), false, true, true, AccessModifier.PUBLIC);
SourceOrigin.UNKNOWN); final JMethod newMethod = new JMethod(methodSource, "enhanceAll", methodCall.getTarget().getEnclosingType(), ast.getProgram().getTypeVoid(),
SourceInfo info = implmeth.getSourceInfo(); JMethod bridgeMethod = new JMethod(info, implmeth.getName(), curClass.type, typeMap .get(jdtBridgeMethod.returnType), false, false, implmeth.isFinal(), implmeth .getAccess());