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
public static class CtModelImpl.CtRootPackage extends CtPackageImpl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class spoon.support.reflect.declaration.CtPackageImpl
packs
-
Fields inherited from class spoon.support.reflect.declaration.CtElementImpl
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
-
Fields inherited from interface spoon.reflect.declaration.CtPackage
PACKAGE_SEPARATOR, PACKAGE_SEPARATOR_CHAR, TOP_LEVEL_PACKAGE_NAME
-
-
Constructor Summary
Constructors Constructor Description CtRootPackage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getQualifiedName()
Returns the fully qualified name of this package.<T extends CtNamedElement>
TsetSimpleName(String name)
Sets the simple (unqualified) name of this element.String
toString()
-
Methods inherited from class spoon.support.reflect.declaration.CtPackageImpl
accept, addPackage, addType, clone, getDeclaringModule, getDeclaringPackage, getPackage, getPackages, getReference, getType, getTypes, hasPackageInfo, isEmpty, isShadow, isUnnamedPackage, removePackage, removeType, setPackages, setShadow, setTypes
-
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, 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, 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, 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, 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
-
-
-
-
Method Detail
-
setSimpleName
public <T extends CtNamedElement> T setSimpleName(String name)
Description copied from interface:CtNamedElement
Sets the simple (unqualified) name of this element.- Specified by:
setSimpleName
in interfaceCtNamedElement
- Overrides:
setSimpleName
in classCtNamedElementImpl
-
getQualifiedName
public String getQualifiedName()
Description copied from interface:CtPackage
Returns the fully qualified name of this package. This is also known as the package's canonical name.- Specified by:
getQualifiedName
in interfaceCtPackage
- Overrides:
getQualifiedName
in classCtPackageImpl
- Returns:
- the fully qualified name of this package, or the empty string if this is the unnamed package
-
toString
public String toString()
- Specified by:
toString
in interfaceCtElement
- Overrides:
toString
in classCtPackageImpl
- Returns:
- the source code of this element according to the setting of
Environment.getPrettyPrintingMode()
.
-
-