APICallVisitor extends JavaApproximateTypeInferencer { public APICallVisitor(final CompilationUnit unit) { this(unit, null); } APICallVisitor(final CompilationUnit unit);  APICallVisitor(final CompilationUnit unit, final String wildcardNameSpaceFolder); @Override boolean visit(final ImportDeclaration node); @Override boolean visit(final MethodDeclaration node); @Override void endVisit(final MethodDeclaration node); @Override void endVisit(final MethodInvocation node); @Override void endVisit(final ClassInstanceCreation node); @Override boolean visit(final TypeDeclaration node); @Override void endVisit(final TypeDeclaration node); @Override boolean visit(final EnumDeclaration node); @Override void endVisit(final EnumDeclaration node); @Override void process(); String getFullyQualifiedMethodNameFor(final Expression exp, final String parentClassName,
			final Table<ASTNode, String, String> variableScopeNameTypes); LinkedListMultimap<String, String> getAPINames(final String namespace);  }
@Test public void testAPICallVisitor() throws IOException { final File file = getTestFile("AccessTokenGenerator.java"); final APICallVisitor acv = new APICallVisitor(ASTVisitors.getAST(file), null); acv.process(); final LinkedListMultimap<String, String> fqAPICalls = acv.getAPINames("twitter4j"); for (final Entry<String, Collection<String>> entry : fqAPICalls.asMap().entrySet()) { System.out.println("\nMethod " + entry.getKey() + ":"); for (final String call : entry.getValue()) System.out.println(call); } }