Interface IModularClassFile
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IClassFile, ICodeAssist, IJavaElement, IOpenable, IParent, ISourceReference, ITypeRoot
- All Known Implementing Classes:
ModularClassFile
Represents the class file of a module description ("module-info.class").
- Since:
- 3.14
-
Field Summary
Fields inherited from interface 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 TypeMethodDescriptionReturns the module description contained in this type root.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface IClassFile
becomeWorkingCopy, getBytes, getType, getWorkingCopy, isClass, isInterfaceMethods inherited from interface ICodeAssist
codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, codeSelect, codeSelectMethods inherited from interface IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownMethods inherited from interface IOpenable
close, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, saveMethods inherited from interface IParent
getChildren, hasChildrenMethods inherited from interface ISourceReference
exists, getNameRange, getSource, getSourceRangeMethods inherited from interface ITypeRoot
findPrimaryType, getElementAt, getWorkingCopy
-
Method Details
-
getModule
Returns the module description contained in this type root. An error-freeIModularClassFileshould always have a module.- Specified by:
getModulein interfaceITypeRoot- Returns:
- the module description contained in the type root.
- Throws:
JavaModelException
-