Class JdtUtil


  • public class JdtUtil
    extends Object
    This class contains a set of static methods that are able to access Java source code based Eclipse JDT. It supports accessing major Java model elements and type-specific query of all AST nodes
    Author:
    Cheng Yun
    • Constructor Detail

      • JdtUtil

        public JdtUtil()
    • Method Detail

      • getIProjects

        public static List<org.eclipse.core.resources.IProject> getIProjects()
      • getIProjects

        public static List<org.eclipse.core.resources.IProject> getIProjects​(String[] projectNames)
      • getIJavaProject

        public static org.eclipse.jdt.core.IJavaProject getIJavaProject​(org.eclipse.core.resources.IProject project)
                                                                 throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException
      • getIJavaProjects

        public static List<org.eclipse.jdt.core.IJavaProject> getIJavaProjects​(List<org.eclipse.core.resources.IProject> proejcts)
                                                                        throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException