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, LOGGER
Fields inherited from interface spoon.reflect.declaration.CtModule
TOP_LEVEL_MODULE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accepts a visitorboolean
Gets 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, setUsedServices
Methods inherited from class spoon.support.reflect.declaration.CtNamedElementImpl
getSimpleName
Methods 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, updateAllParentsBelow
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, updateAllParentsBelow
Methods inherited from interface spoon.reflect.declaration.CtNamedElement
getSimpleName
Methods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, map
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Constructor Details
-
CtUnnamedModule
public CtUnnamedModule()
-
-
Method Details
-
addModule
-
getModule
-
getAllModules
-
setSimpleName
Description copied from interface:CtNamedElement
Sets the simple (unqualified) name of this element.- Specified by:
setSimpleName
in interfaceCtNamedElement
- Overrides:
setSimpleName
in classCtNamedElementImpl
-
toString
- Specified by:
toString
in interfaceCtElement
- Overrides:
toString
in classCtElementImpl
- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode()
.
-
accept
Description copied from interface:CtVisitable
Accepts a visitor- Specified by:
accept
in interfaceCtVisitable
- Overrides:
accept
in classCtModuleImpl
-
getParent
Description copied from interface:CtElement
Gets the parent of current reference.- Specified by:
getParent
in interfaceCtElement
- Overrides:
getParent
in classCtModuleImpl
-