Class AbstractModule.AutoModule
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
org.aspectj.org.eclipse.jdt.internal.core.Member
org.aspectj.org.eclipse.jdt.internal.core.NamedMember
org.aspectj.org.eclipse.jdt.internal.core.AbstractModule.AutoModule
- All Implemented Interfaces:
IAnnotatable, IJavaElement, IMember, IModuleDescription, IParent, ISourceManipulation, ISourceReference, AbstractModule, org.eclipse.core.runtime.IAdaptable
- Enclosing interface:
AbstractModule
Handle for an automatic module.
Note, that by definition this is mostly a fake, only NamedMember.getElementName() provides a useful value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AbstractModule
AbstractModule.AutoModule -
Field Summary
Fields inherited from class NamedMember
nameFields inherited from class JavaElement
JEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_MODULAR_CLASSFILE, JEM_MODULE, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, NO_STRINGSFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the immediate children of this element.intgetFlags()Returns the modifier flags for this member.charReturns thecharthat marks the start of this handles contribution to a memento.Returns the Java type root in which this member is declared.booleanbooleanvoidtoStringContent(StringBuilder buffer, String lineDelimiter) Methods inherited from class NamedMember
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getOccurrenceCountSignature, getPackageFragment, getTypeParameters, getTypeQualifiedName, resolveType, resolveTypeMethods inherited from class Member
areSimilarMethods, convertConstant, findMethods, getCategories, getClassFile, getDeclaringType, getHandleFromMemento, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, isBinary, isMainMethod, isMainMethodCandidate, isReadOnly, readableNameMethods inherited from class SourceRefElement
calculateHashCode, closing, copy, createElementInfo, delete, equals, findNode, generateInfos, getAnnotation, getAnnotations, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, incOccurrenceCount, isStructureKnown, move, rename, resource, setOccurrenceCount, toStringNameMethods inherited from class JavaElement
appendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildrenOfType, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, resetHashCode, resolved, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringInfo, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCacheMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from interface AbstractModule
getElementInfo, getElementType, getExportedPackageNames, getExportedPackages, getModuleInfo, getOpenedPackageNames, getOpenedPackages, getProvidedServiceNames, getProvidedServices, getRequiredModuleNames, getUsedServiceNames, getUsedServices, toStringMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface IAnnotatable
getAnnotation, getAnnotationsMethods inherited from interface IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownMethods inherited from interface IMember
getCategories, getClassFile, getCompilationUnit, getDeclaringType, getJavadocRange, getOccurrenceCount, getType, isBinaryMethods inherited from interface IModuleDescription
isSystemModuleMethods inherited from interface IParent
hasChildrenMethods inherited from interface ISourceManipulation
copy, delete, move, renameMethods inherited from interface ISourceReference
exists, getNameRange, getSource, getSourceRange
-
Constructor Details
-
AutoModule
-
-
Method Details
-
getChildren
Description copied from interface:IParentReturns the immediate children of this element. Unless otherwise specified by the implementing element, the children are in no particular order.- Specified by:
getChildrenin interfaceIParent- Overrides:
getChildrenin classJavaElement- Returns:
- the immediate children of this element
- Throws:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource- See Also:
-
getFlags
Description copied from interface:IMemberReturns the modifier flags for this member. The flags can be examined using classFlags.For binary members, flags from the class file as well as derived flags
Flags.AccAnnotationDefaultandFlags.AccDefaultMethodare included.For source members, only flags as indicated in the source are returned. Thus if an interface defines a method
void myMethod();, the flags don't include the 'public' flag. Source flags includeFlags.AccAnnotationDefaultas well.- Specified by:
getFlagsin interfaceIMember- Overrides:
getFlagsin classMember- Returns:
- the modifier flags for this member
- Throws:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- See Also:
-
isAutoModule
public boolean isAutoModule()- Specified by:
isAutoModulein interfaceIModuleDescription- Returns:
- true if automatic module, else false
-
isAutoNameFromManifest
public boolean isAutoNameFromManifest() -
getHandleMementoDelimiter
public char getHandleMementoDelimiter()Description copied from class:JavaElementReturns thecharthat marks the start of this handles contribution to a memento.- Overrides:
getHandleMementoDelimiterin classMember- See Also:
-
getTypeRoot
Description copied from interface:IMemberReturns the Java type root in which this member is declared. This is a handle-only method.- Specified by:
getTypeRootin interfaceIMember- Overrides:
getTypeRootin classMember- Returns:
- the Java type root in which this member is declared.
- See Also:
-
getRequiredModules
- Specified by:
getRequiredModulesin interfaceAbstractModule- Throws:
JavaModelException
-
toStringContent
- Specified by:
toStringContentin interfaceAbstractModule- Throws:
JavaModelException
-