Package spoon.reflect.factory
Class ModuleFactory.CtUnnamedModule
java.lang.Object
spoon.support.reflect.declaration.CtElementImpl
spoon.support.reflect.declaration.CtNamedElementImpl
spoon.support.reflect.declaration.CtModuleImpl
spoon.reflect.factory.ModuleFactory.CtUnnamedModule
- All Implemented Interfaces:
Serializable,Cloneable,FactoryAccessor,SourcePositionHolder,CtElement,CtModule,CtNamedElement,CtQueryable,CtVisitable
- Enclosing class:
- ModuleFactory
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class spoon.support.reflect.declaration.CtElementImpl
ERROR_MESSAGE_TO_STRING, factory, LOGGERFields inherited from interface spoon.reflect.declaration.CtModule
TOP_LEVEL_MODULE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts a visitorbooleanGets the parent of current reference.<T extends CtNamedElement>
TsetSimpleName(String name)Sets the simple (unqualified) name of this element.toString()Methods inherited from class spoon.support.reflect.declaration.CtModuleImpl
addExportedPackage, addModuleDirective, addModuleDirectiveAt, addOpenedPackage, addProvidedService, addRequiredModule, addUsedService, clone, getExportedPackages, getModuleDirectives, getOpenedPackages, getProvidedServices, getReference, getRequiredModules, getRootPackage, getUsedServices, isOpenModule, isUnnamedModule, removeExportedPackage, removeModuleDirective, removeOpenedPackage, removeProvidedService, removeRequiredModule, removeUsedService, setExportedPackages, setIsOpenModule, setModuleDirectives, setOpenedPackages, setParent, setProvidedServices, setRequiredModules, setRootPackage, setUsedServicesMethods inherited from class spoon.support.reflect.declaration.CtNamedElementImpl
getSimpleNameMethods inherited from class spoon.support.reflect.declaration.CtElementImpl
addAnnotation, addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setPosition, setPositions, setValueByRole, toStringDebug, unmodifiableList, updateAllParentsBelowMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface spoon.reflect.declaration.CtElement
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setPosition, setPositions, setValueByRole, toStringDebug, updateAllParentsBelowMethods inherited from interface spoon.reflect.declaration.CtNamedElement
getSimpleNameMethods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, mapMethods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Constructor Details
-
CtUnnamedModule
public CtUnnamedModule()
-
-
Method Details
-
addModule
-
getModule
-
getAllModules
-
setSimpleName
Description copied from interface:CtNamedElementSets the simple (unqualified) name of this element.- Specified by:
setSimpleNamein interfaceCtNamedElement- Overrides:
setSimpleNamein classCtNamedElementImpl
-
toString
- Specified by:
toStringin interfaceCtElement- Overrides:
toStringin classCtElementImpl- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode().
-
accept
Description copied from interface:CtVisitableAccepts a visitor- Specified by:
acceptin interfaceCtVisitable- Overrides:
acceptin classCtModuleImpl
-
getParent
Description copied from interface:CtElementGets the parent of current reference.- Specified by:
getParentin interfaceCtElement- Overrides:
getParentin classCtModuleImpl
-