public static class AbstractModule.AutoModule extends NamedMember implements AbstractModule
Note, that by definition this is mostly a fake, only NamedMember.getElementName() provides a useful value.
AbstractModule.AutoModulenameoccurrenceCountJEM_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, parentANNOTATION, 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 and Description |
|---|
AutoModule(JavaElement parent,
java.lang.String name,
boolean nameFromManifest) |
| Modifier and Type | Method and Description |
|---|---|
IJavaElement[] |
getChildren()
Returns the immediate children of this element.
|
int |
getFlags()
Returns the modifier flags for this member.
|
char |
getHandleMementoDelimiter()
Returns the
char that marks the start of this handles
contribution to a memento. |
IModule.IModuleReference[] |
getRequiredModules() |
ITypeRoot |
getTypeRoot()
Returns the Java type root in which this member is declared.
|
boolean |
isAutoModule() |
boolean |
isAutoNameFromManifest() |
void |
toStringContent(java.lang.StringBuffer buffer,
java.lang.String lineDelimiter) |
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getOccurrenceCountSignature, getPackageFragment, getTypeParameters, getTypeQualifiedName, resolveType, resolveTypeareSimilarMethods, convertConstant, findMethods, getCategories, getClassFile, getDeclaringType, getHandleFromMemento, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, isBinary, isMainMethod, isReadOnly, readableNameclosing, copy, createElementInfo, delete, equals, findNode, generateInfos, getAnnotation, getAnnotations, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resource, toStringNameappendEscapedDelimiter, 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, validateAndCacheclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetElementInfo, getElementType, getExportedPackageNames, getExportedPackages, getModuleInfo, getOpenedPackageNames, getOpenedPackages, getProvidedServiceNames, getProvidedServices, getRequiredModuleNames, getUsedServiceNames, getUsedServices, toStringisSystemModulegetCategories, getClassFile, getCompilationUnit, getDeclaringType, getJavadocRange, getOccurrenceCount, getType, isBinaryexists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownexists, getNameRange, getSource, getSourceRangecopy, delete, move, renamehasChildrengetAnnotation, getAnnotationspublic AutoModule(JavaElement parent, java.lang.String name, boolean nameFromManifest)
public IJavaElement[] getChildren() throws JavaModelException
IParentgetChildren in interface IParentgetChildren in class JavaElementJavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resourceIParentpublic int getFlags()
throws JavaModelException
IMemberFlags.
For binary members, flags from the class file
as well as derived flags Flags.AccAnnotationDefault and Flags.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 include Flags.AccAnnotationDefault as well.
public boolean isAutoModule()
isAutoModule in interface IModuleDescriptionpublic boolean isAutoNameFromManifest()
public char getHandleMementoDelimiter()
JavaElementchar that marks the start of this handles
contribution to a memento.getHandleMementoDelimiter in class MemberJavaElement.getHandleMemento()public ITypeRoot getTypeRoot()
IMembergetTypeRoot in interface IMembergetTypeRoot in class MemberIMember.getTypeRoot()public IModule.IModuleReference[] getRequiredModules() throws JavaModelException
getRequiredModules in interface AbstractModuleJavaModelExceptionpublic void toStringContent(java.lang.StringBuffer buffer,
java.lang.String lineDelimiter)
throws JavaModelException
toStringContent in interface AbstractModuleJavaModelException