public interface CtPackageDeclaration extends CtElement
package your.nice.package.name;
Modifier and Type | Method and Description |
---|---|
CtPackageDeclaration |
clone()
Clone the element which calls this method in a new object.
|
CtPackageReference |
getReference()
Returns the reference to the package.
|
CtPackageDeclaration |
setReference(CtPackageReference reference)
Sets the reference to the package.
|
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, 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, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
getOriginalSourceFragment
CtPackageReference getReference()
CtPackageDeclaration setReference(CtPackageReference reference)
CtPackageDeclaration clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.Copyright © 2007–2019 Inria. All rights reserved.