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
Modifier and TypeInterfaceDescriptionstatic class
Handle 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 int
Returns this element's kind encoded as an integer.default String[]
getExportedPackageNames(IModuleDescription targetModule)
Get names of exported packages.default IModule.IPackageExport[]
default IModule
default 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 String
default void
toStringContent(StringBuffer buffer, String lineDelimiter)
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IAnnotatable
getAnnotation, getAnnotations
Methods 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, isStructureKnown
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IMember
getCategories, getClassFile, getCompilationUnit, getDeclaringType, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinary
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IModuleDescription
isAutoModule, isSystemModule
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
getChildren, hasChildren
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceManipulation
copy, delete, move, rename
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceReference
exists, getNameRange, getSource, getSourceRange
-
Method Details
-
getElementInfo
- Throws:
JavaModelException
-
getModuleInfo
- Throws:
JavaModelException
-
getExportedPackageNames
default String[] getExportedPackageNames(IModuleDescription targetModule) throws JavaModelExceptionDescription copied from interface:IModuleDescription
Get names of exported packages.- Specified by:
getExportedPackageNames
in 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:IModuleDescription
Get names of opened packages.- Specified by:
getOpenedPackageNames
in 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:IModuleDescription
Get provided service names for this module.- Specified by:
getProvidedServiceNames
in interfaceIModuleDescription
- Returns:
- a non-null array of provided service names
- Throws:
JavaModelException
-
getUsedServices
- Throws:
JavaModelException
-
getUsedServiceNames
Description copied from interface:IModuleDescription
Get used service names for this module.- Specified by:
getUsedServiceNames
in interfaceIModuleDescription
- Returns:
- a non-null array of used service names
- Throws:
JavaModelException
-
getOpenedPackages
- Throws:
JavaModelException
-
getRequiredModuleNames
Description copied from interface:IModuleDescription
Answer the names of all modules directly required from this module.- Specified by:
getRequiredModuleNames
in interfaceIModuleDescription
- Returns:
- a non-null array of module names
- Throws:
JavaModelException
-
toString
-
toStringContent
- Throws:
JavaModelException
-
getElementType
default int getElementType()Description copied from interface:IJavaElement
Returns this element's kind encoded as an integer. This is a handle-only method.- Specified by:
getElementType
in interfaceIJavaElement
- Returns:
- the kind of element; one of the constants declared in
IJavaElement
- See Also:
IJavaElement
-