}
}
public boolean visit(MethodDeclaration methodDeclaration, ClassScope scope) {
try {
MethodBinding b = methodDeclaration.binding;
SourceInfo info = makeSourceInfo(methodDeclaration);
JType returnType = (JType) typeMap.get(methodDeclaration.returnType.resolvedType);
JReferenceType enclosingType = (JReferenceType) typeMap.get(scope.enclosingSourceType());
JMethod newMethod = program.createMethod(info,
methodDeclaration.selector, enclosingType, returnType,
b.isAbstract(), b.isStatic(), b.isFinal(), b.isPrivate(),
b.isNative());
mapThrownExceptions(newMethod, methodDeclaration);
mapParameters(newMethod, methodDeclaration);
typeMap.put(b, newMethod);