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 org.aspectj.org.eclipse.jdt.internal.core.AbstractModule
AbstractModule.AutoModule
-
Field Summary
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember
name
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
occurrenceCount
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.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_STRINGS, parent
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the immediate children of this element.int
getFlags()
Returns the modifier flags for this member.char
Returns thechar
that marks the start of this handles contribution to a memento.Returns the Java type root in which this member is declared.boolean
boolean
void
toStringContent(StringBuffer buffer, String lineDelimiter)
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getOccurrenceCountSignature, getPackageFragment, getTypeParameters, getTypeQualifiedName, resolveType, resolveType
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Member
areSimilarMethods, convertConstant, findMethods, getCategories, getClassFile, getDeclaringType, getHandleFromMemento, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, isBinary, isMainMethod, isReadOnly, readableName
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
closing, copy, createElementInfo, delete, equals, findNode, generateInfos, getAnnotation, getAnnotations, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resource, toStringName
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.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, resolved, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringInfo, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCache
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.core.AbstractModule
getElementInfo, getElementType, getExportedPackageNames, getExportedPackages, getModuleInfo, getOpenedPackageNames, getOpenedPackages, getProvidedServiceNames, getProvidedServices, getRequiredModuleNames, getUsedServiceNames, getUsedServices, toString
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, getJavadocRange, getOccurrenceCount, getType, isBinary
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IModuleDescription
isSystemModule
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
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
-
Constructor Details
-
AutoModule
-
-
Method Details
-
getChildren
Description copied from interface:IParent
Returns the immediate children of this element. Unless otherwise specified by the implementing element, the children are in no particular order.- Specified by:
getChildren
in interfaceIParent
- Overrides:
getChildren
in 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:
IParent
-
getFlags
Description copied from interface:IMember
Returns 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.AccAnnotationDefault
andFlags.AccDefaultMethod
are 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.AccAnnotationDefault
as well. -
isAutoModule
public boolean isAutoModule()- Specified by:
isAutoModule
in interfaceIModuleDescription
- Returns:
- true if automatic module, else false
-
isAutoNameFromManifest
public boolean isAutoNameFromManifest() -
getHandleMementoDelimiter
public char getHandleMementoDelimiter()Description copied from class:JavaElement
Returns thechar
that marks the start of this handles contribution to a memento.- Overrides:
getHandleMementoDelimiter
in classMember
- See Also:
JavaElement.getHandleMemento()
-
getTypeRoot
Description copied from interface:IMember
Returns the Java type root in which this member is declared. This is a handle-only method.- Specified by:
getTypeRoot
in interfaceIMember
- Overrides:
getTypeRoot
in classMember
- Returns:
- the Java type root in which this member is declared.
- See Also:
IMember.getTypeRoot()
-
getRequiredModules
- Specified by:
getRequiredModules
in interfaceAbstractModule
- Throws:
JavaModelException
-
toStringContent
- Specified by:
toStringContent
in interfaceAbstractModule
- Throws:
JavaModelException
-