public interface IModuleDescription extends IMember, IAnnotatable
module my.module {
exports my.pack1;
exports my.pack2;
requires java.sql;
}
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getExportedPackageNames(IModuleDescription targetModule)
Get names of exported packages.
|
java.lang.String[] |
getOpenedPackageNames(IModuleDescription targetModule)
Get names of opened packages.
|
java.lang.String[] |
getProvidedServiceNames()
Get provided service names for this module.
|
java.lang.String[] |
getRequiredModuleNames()
Answer the names of all modules directly required from this module.
|
java.lang.String[] |
getUsedServiceNames()
Get used service names for this module.
|
default boolean |
isAutoModule() |
default boolean |
isSystemModule() |
getCategories, getClassFile, getCompilationUnit, getDeclaringType, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinaryexists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownexists, getNameRange, getSource, getSourceRangecopy, delete, move, renamegetChildren, hasChildrengetAnnotation, getAnnotationsjava.lang.String[] getRequiredModuleNames()
throws JavaModelException
JavaModelExceptionjava.lang.String[] getProvidedServiceNames()
throws JavaModelException
JavaModelExceptionjava.lang.String[] getUsedServiceNames()
throws JavaModelException
JavaModelExceptionjava.lang.String[] getExportedPackageNames(IModuleDescription targetModule) throws JavaModelException
targetModule - filter the result to include only packages exported to the given module, unless null.JavaModelExceptionjava.lang.String[] getOpenedPackageNames(IModuleDescription targetModule) throws JavaModelException
targetModule - filter the result to include only packages opened to the given module, unless null.JavaModelExceptiondefault boolean isAutoModule()
default boolean isSystemModule()