Package spoon.reflect
Class CtModelImpl.CtRootPackage
java.lang.Object
spoon.support.reflect.declaration.CtElementImpl
spoon.support.reflect.declaration.CtNamedElementImpl
spoon.support.reflect.declaration.CtPackageImpl
spoon.reflect.CtModelImpl.CtRootPackage
- All Implemented Interfaces:
Serializable,Cloneable,FactoryAccessor,SourcePositionHolder,CtElement,CtNamedElement,CtPackage,CtShadowable,CtQueryable,CtVisitable
- Enclosing class:
- CtModelImpl
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class spoon.support.reflect.declaration.CtPackageImpl
packsFields inherited from class spoon.support.reflect.declaration.CtElementImpl
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parentFields inherited from interface spoon.reflect.declaration.CtPackage
PACKAGE_SEPARATOR, PACKAGE_SEPARATOR_CHAR, TOP_LEVEL_PACKAGE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the fully qualified name of this package.<T extends CtNamedElement>
TsetSimpleName(String name)Sets the simple (unqualified) name of this element.toString()Methods inherited from class spoon.support.reflect.declaration.CtPackageImpl
accept, addPackage, addType, clone, getDeclaringModule, getDeclaringPackage, getPackage, getPackages, getReference, getType, getTypes, hasPackageInfo, hasPackages, hasTypes, isEmpty, isShadow, isUnnamedPackage, removePackage, removeType, setPackages, setShadow, setTypesMethods 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, 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, setParent, 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, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, 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
-
CtRootPackage
public CtRootPackage()
-
-
Method Details
-
setSimpleName
Description copied from interface:CtNamedElementSets the simple (unqualified) name of this element.- Specified by:
setSimpleNamein interfaceCtNamedElement- Overrides:
setSimpleNamein classCtPackageImpl
-
getQualifiedName
Description copied from interface:CtPackageReturns the fully qualified name of this package. This is also known as the package's canonical name.- Specified by:
getQualifiedNamein interfaceCtPackage- Overrides:
getQualifiedNamein classCtPackageImpl- Returns:
- the fully qualified name of this package, or the empty string if this is the unnamed package
-
toString
- Specified by:
toStringin interfaceCtElement- Overrides:
toStringin classCtPackageImpl- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode().
-