Class JDTClassifierResolver
java.lang.Object
tools.mdsd.jamopp.commons.jdt.resolve.JDTClassifierResolver
This class can be used to find all Java classifiers that are available in a
given JDT Java project.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllClassifiersForPackageInClassPath
(String packageName, org.eclipse.jdt.core.IJavaProject project) Returns a list of all Java classifiers that are available in the classpath of the given project within the given package.getAllClassifiersInClassPath
(org.eclipse.jdt.core.IJavaProject project) Returns a list of all Java classifiers that are available in the classpath of the given project.org.eclipse.jdt.core.IJavaProject
getJavaProject
(URI uri) Returns the Java project that is located at the given URI.
-
Constructor Details
-
JDTClassifierResolver
public JDTClassifierResolver()
-
-
Method Details
-
getJavaProject
Returns the Java project that is located at the given URI. If the project at this locations is not a Java project or if there is no project at all,null
is returned. -
getAllClassifiersInClassPath
public List<JDTJavaClassifier> getAllClassifiersInClassPath(org.eclipse.jdt.core.IJavaProject project) Returns a list of all Java classifiers that are available in the classpath of the given project. -
getAllClassifiersForPackageInClassPath
public List<JDTJavaClassifier> getAllClassifiersForPackageInClassPath(String packageName, org.eclipse.jdt.core.IJavaProject project) Returns a list of all Java classifiers that are available in the classpath of the given project within the given package. IfpackageName
is null, all classifiers in the project are returned.
-