private void createParameters(JMethod method, AbstractMethodDeclaration x) { if (x.arguments != null) { for (Argument argument : x.arguments) { SourceInfo info = makeSourceInfo(argument); LocalVariableBinding binding = argument.binding; createParameter(info, binding, method); } } method.freezeParamTypes(); }
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.freezeParamTypes(); getSingleton.setSynthetic(); info.addCorrelation(info.getCorrelator().by(getSingleton));
bridgeMethod.addThrownException((JClassType) typeMap.get(exceptionReference.erasure())); bridgeMethod.freezeParamTypes();