Interface AbstractModule
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable,IAnnotatable,IJavaElement,IMember,IModuleDescription,IParent,ISourceManipulation,ISourceReference
- All Known Implementing Classes:
AbstractModule.AutoModule,BinaryModule,SourceModule
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classHandle for an automatic module. -
Field Summary
Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
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 -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns this element's kind encoded as an integer.default String[]getExportedPackageNames(IModuleDescription targetModule) Get names of exported packages.default IModule.IPackageExport[]default IModuledefault String[]getOpenedPackageNames(IModuleDescription targetModule) Get names of opened packages.default IModule.IPackageExport[]default String[]Get provided service names for this module.default IModule.IService[]default String[]Answer the names of all modules directly required from this module.default IModule.IModuleReference[]default String[]Get used service names for this module.default char[][]default Stringdefault voidtoStringContent(StringBuilder buffer, String lineDelimiter) Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IAnnotatable
getAnnotation, getAnnotationsMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IMember
getCategories, getClassFile, getCompilationUnit, getDeclaringType, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinaryMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IModuleDescription
isAutoModule, isSystemModuleMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
getChildren, hasChildrenMethods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceManipulation
copy, delete, move, renameMethods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceReference
exists, getNameRange, getSource, getSourceRange
-
Method Details
-
getElementInfo
- Throws:
JavaModelException
-
getModuleInfo
- Throws:
JavaModelException
-
getExportedPackageNames
Description copied from interface:IModuleDescriptionGet names of exported packages.- Specified by:
getExportedPackageNamesin interfaceIModuleDescription- Parameters:
targetModule- filter the result to include only packages exported to the given module, unlessnull.- Returns:
- a non-null array of exported package names
- Throws:
JavaModelException
-
getOpenedPackageNames
Description copied from interface:IModuleDescriptionGet names of opened packages.- Specified by:
getOpenedPackageNamesin interfaceIModuleDescription- Parameters:
targetModule- filter the result to include only packages opened to the given module, unlessnull.- Returns:
- a non-null array of opened package names
- Throws:
JavaModelException
-
getRequiredModules
- Throws:
JavaModelException
-
getExportedPackages
- Throws:
JavaModelException
-
getProvidedServices
- Throws:
JavaModelException
-
getProvidedServiceNames
Description copied from interface:IModuleDescriptionGet provided service names for this module.- Specified by:
getProvidedServiceNamesin interfaceIModuleDescription- Returns:
- a non-null array of provided service names
- Throws:
JavaModelException
-
getUsedServices
- Throws:
JavaModelException
-
getUsedServiceNames
Description copied from interface:IModuleDescriptionGet used service names for this module.- Specified by:
getUsedServiceNamesin interfaceIModuleDescription- Returns:
- a non-null array of used service names
- Throws:
JavaModelException
-
getOpenedPackages
- Throws:
JavaModelException
-
getRequiredModuleNames
Description copied from interface:IModuleDescriptionAnswer the names of all modules directly required from this module.- Specified by:
getRequiredModuleNamesin interfaceIModuleDescription- Returns:
- a non-null array of module names
- Throws:
JavaModelException
-
toString
-
toStringContent
- Throws:
JavaModelException
-
getElementType
default int getElementType()Description copied from interface:IJavaElementReturns this element's kind encoded as an integer. This is a handle-only method.- Specified by:
getElementTypein interfaceIJavaElement- Returns:
- the kind of element; one of the constants declared in
IJavaElement - See Also:
-