/** Visit the given constructor and discover its parameter names. */ private ParameterNameDiscoveringVisitor visitConstructor(Constructor ctor) throws IOException { ClassReader classReader = getClassReader(ctor.getDeclaringClass()); FindConstructorParameterNamesClassVisitor classVisitor = new FindConstructorParameterNamesClassVisitor(ctor); classReader.accept(classVisitor, 0); // classReader.accept(classVisitor, false); return classVisitor; }
/** Visit the given method and discover its parameter names. */ private ParameterNameDiscoveringVisitor visitMethod(Method method) throws IOException { ClassReader classReader = getClassReader(method.getDeclaringClass()); FindMethodParameterNamesClassVisitor classVisitor = new FindMethodParameterNamesClassVisitor(method); // classReader.accept(classVisitor, false); classReader.accept(classVisitor, 0); return classVisitor; }