Package org.emftext.language.java
Class JavaClasspath
java.lang.Object
org.emftext.language.java.JavaClasspath
This class is responsible for managing and retrieving Java resources to establish inter-model references between
different Java classes represented as EMF-models.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidbooleanexistsPackage(String packageName) static JavaClasspathget()static JavaClasspathstatic JavaClasspathstatic JavaClasspathget(ResourceSet set) getConcreteClassifier(String fullQualifiedClassifierName) getConcreteClassifiers(String packageName) getPackage(String packageName) booleanisPackageRegistered(String packageName) booleanisRegistered(String fullQualifiedName) voidregisterClassifier(String packageName, String classifierName, URI physicalURI) Registers the classifier with the given name and package that is physically located at the given URI.voidregisterClassifier(CompilationUnit compilationUnit, URI uri) Registers all classes defined in the given compilation unit.voidregisterJavaRoot(JavaRoot root, URI physicalUri) voidregisterModule(String moduleName, URI physicalUri) voidregisterModule(Module module, URI physicalUri) voidregisterPackage(String packageName, URI physicalUri) voidregisterPackage(Package pack, URI physicalUri) voidRegisters all classes of the Java standard library (src.zipfor Java 9+) located atSystem.getProperty("java.home").voidregisterZip(URI zipURI) Registers all source and class files within a zip file.static voidstatic voidstatic voidremove(ResourceSet set) voidunRegisterClassifier(String packageName, String classifierName) Removes the classifier identified by its package and name from the class path.
-
Method Details
-
get
-
get
-
get
-
get
-
remove
-
remove
-
remove
-
enableLocalRegistration
public void enableLocalRegistration() -
clear
public void clear() -
registerJavaRoot
-
registerPackage
-
registerPackage
-
registerModule
-
registerModule
-
getPackage
-
getModule
-
getConcreteClassifier
-
getConcreteClassifiers
-
registerStdLib
public void registerStdLib()Registers all classes of the Java standard library (src.zipfor Java 9+) located atSystem.getProperty("java.home"). -
registerZip
Registers all source and class files within a zip file.- Parameters:
zipURI- URI pointing to the zip file.
-
existsPackage
-
getURIMap
-
registerClassifier
Registers all classes defined in the given compilation unit.- Parameters:
compilationUnit- the given compilation unit.uri- the physical URI of the compilation unit.
-
registerClassifier
Registers the classifier with the given name and package that is physically located at the given URI. If there is already a classifier registered for the given class name, the old one is replaced with the new one.- Parameters:
packageName- the name of the package that contains the classifier.classifierName- the simple name of the classifier.physicalURI- the URI where the classifier can be found (class or source file).
-
unRegisterClassifier
Removes the classifier identified by its package and name from the class path.- Parameters:
packageName- name of the package.classifierName- name of the classifier.
-
isPackageRegistered
-
isRegistered
-