Eclipse JDT: How to find JDK MethodInvocation and ClassInstanceCreation
问题 I am using Eclipse JDT ASTVisitor to find Java method invocations and class instance creations from java source files. Now, I can find all of these. But I can not judge whether these method invocations and class instance creations is from JDK library or not . So, How can I get the JDK library method invocations (eg: InputStream.read()) and class instance (eg: new String())? The following is my code. JdtAstUtil.java import java.io.BufferedInputStream; import java.io.FileInputStream; import