Uses of Interface
spoon.reflect.declaration.CtPackage
Package
Description
This root package provides the default integrated launchers for Spoon program processing.
This package defines the Spoon's compile-time meta-model of Java programs.
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines the references to program elements for the meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
-
Uses of CtPackage in spoon
-
Uses of CtPackage in spoon.reflect
Modifier and TypeMethodDescriptionCtModel.getRootPackage()
returns the root package of the unnamed moduleCtModelImpl.getRootPackage()
Modifier and TypeMethodDescriptionCtModel.getAllPackages()
returns all packages of the modelCtModelImpl.getAllPackages()
-
Uses of CtPackage in spoon.reflect.declaration
Modifier and TypeMethodDescription<T extends CtPackage>
TCtPackage.addPackage(CtPackage pack)
add a subpackage<T extends CtPackage>
TAdds a type to this package.<T extends CtPackage>
TCtPackage.setPackages(Set<CtPackage> pack)
Sets the children defined in this package<T extends CtPackage>
TSets the types defined in the package.Modifier and TypeMethodDescriptionCtPackage.clone()
CtCompilationUnit.getDeclaredPackage()
Gets the declared packageCtPackage.getDeclaringPackage()
Gets the declaring package of the current one.CtPackage.getPackage(String name)
Searches a child package by name.CtType.getPackage()
Gets the package where this type is declared.CtModule.getRootPackage()
returns the root package of the unnamed module If there are several modules, it throws an exceptionModifier and TypeMethodDescriptionCtPackage.getPackages()
Gets the set of included child packages.Modifier and TypeMethodDescription<T extends CtPackage>
TCtPackage.addPackage(CtPackage pack)
add a subpackageboolean
CtPackage.removePackage(CtPackage pack)
remove a subpackageCtCompilationUnit.setDeclaredPackage(CtPackage ctPackage)
Sets the package declaration using the instance of CtPackage.<T extends CtModule>
TCtModule.setRootPackage(CtPackage rootPackage)
Modifier and TypeMethodDescription<T extends CtPackage>
TCtPackage.setPackages(Set<CtPackage> pack)
Sets the children defined in this package -
Uses of CtPackage in spoon.reflect.factory
Modifier and TypeMethodDescriptionCreates a new package (see alsoPackageFactory.getOrCreate(String)
).CoreFactory.createPackage()
Creates a package.Factory.createPackage()
Factory.createPackage(CtPackage parent, String simpleName)
FactoryImpl.createPackage()
FactoryImpl.createPackage(CtPackage parent, String simpleName)
Gets a package.PackageFactory.getOrCreate(String qualifiedName)
Gets or creates a package for the unnamed modulePackageFactory.getOrCreate(String qualifiedName, CtModule rootModule)
Gets or creates a package and make its parent the given modulePackageFactory.getRootPackage()
Return the unnamed top-level package.Modifier and TypeMethodDescription<T extends Annotation>
CtAnnotationType<?>Creates an annotation type.<T> CtClass<T>
Creates a top-level class.CtEnum<?>
Creates a new enumeration type<T> CtInterface<T>
Creates an interface.Creates a new package (see alsoPackageFactory.getOrCreate(String)
).Factory.createAnnotationType(CtPackage owner, String simpleName)
FactoryImpl.createAnnotationType(CtPackage owner, String simpleName)
Factory.createClass(CtPackage owner, String simpleName)
FactoryImpl.createClass(CtPackage owner, String simpleName)
CtEnum<?>
Factory.createEnum(CtPackage owner, String simpleName)
CtEnum<?>
FactoryImpl.createEnum(CtPackage owner, String simpleName)
Factory.createInterface(CtPackage owner, String simpleName)
FactoryImpl.createInterface(CtPackage owner, String simpleName)
Factory.createPackage(CtPackage parent, String simpleName)
FactoryImpl.createPackage(CtPackage parent, String simpleName)
PackageFactory.createReference(CtPackage pack)
Creates a reference to an existing package.CompilationUnitFactory.getOrCreate(CtPackage ctPackage)
-
Uses of CtPackage in spoon.reflect.reference
Modifier and TypeMethodDescriptionCtPackageReference.getDeclaration()
Gets the package element when available in the source code. -
Uses of CtPackage in spoon.reflect.visitor
Modifier and TypeMethodDescriptionDefaultJavaPrettyPrinter.printPackageInfo(CtPackage pack)
PrettyPrinter.printPackageInfo(CtPackage pack)
Prints the package info.void
CtAbstractVisitor.visitCtPackage(CtPackage ctPackage)
void
CtBiScannerDefault.visitCtPackage(CtPackage ctPackage)
void
CtInheritanceScanner.visitCtPackage(CtPackage e)
void
CtScanner.visitCtPackage(CtPackage ctPackage)
void
CtVisitor.visitCtPackage(CtPackage ctPackage)
Visits a package declaration.void
DefaultJavaPrettyPrinter.visitCtPackage(CtPackage ctPackage)
-
Uses of CtPackage in spoon.support
Modifier and TypeMethodDescriptionprotected Path
DefaultOutputDestinationHandler.getDirectoryPath(CtModule module, CtPackage pack, CtType type)
protected String
DefaultOutputDestinationHandler.getFileName(CtPackage pack, CtType type)
DefaultOutputDestinationHandler.getOutputPath(CtModule module, CtPackage pack, CtType type)
OutputDestinationHandler.getOutputPath(CtModule module, CtPackage pack, CtType type)
protected Path
DefaultOutputDestinationHandler.getPackagePath(CtPackage pack)
-
Uses of CtPackage in spoon.support.compiler.jdt
-
Uses of CtPackage in spoon.support.reflect.declaration
Modifier and TypeMethodDescription<T extends CtPackage>
TCtPackageImpl.addPackage(CtPackage pack)
<T extends CtPackage>
T<T extends CtPackage>
TCtPackageImpl.setPackages(Set<CtPackage> packs)
<T extends CtPackage>
TModifier and TypeMethodDescriptionCtPackageImpl.clone()
CtCompilationUnitImpl.getDeclaredPackage()
CtPackageImpl.getDeclaringPackage()
CtPackageImpl.getPackage(String simpleName)
CtTypeImpl.getPackage()
CtTypeParameterImpl.getPackage()
CtModuleImpl.getRootPackage()
Modifier and TypeMethodDescription<T extends CtPackage>
TCtPackageImpl.addPackage(CtPackage pack)
boolean
CtPackageImpl.removePackage(CtPackage pack)
CtCompilationUnitImpl.setDeclaredPackage(CtPackage ctPackage)
<T extends CtModule>
TCtModuleImpl.setRootPackage(CtPackage rootPackage)
Modifier and TypeMethodDescription<T extends CtPackage>
TCtPackageImpl.setPackages(Set<CtPackage> packs)
-
Uses of CtPackage in spoon.support.reflect.reference
-
Uses of CtPackage in spoon.support.visitor
-
Uses of CtPackage in spoon.support.visitor.clone
Modifier and TypeMethodDescriptionvoid
CloneBuilder.visitCtPackage(CtPackage e)
void
CloneVisitor.visitCtPackage(CtPackage ctPackage)
-
Uses of CtPackage in spoon.support.visitor.java.internal
Modifier and TypeMethodDescriptionPackageRuntimeBuilderContext.getPackage()
Returns the package belonging to this context.Modifier and TypeMethodDescriptionvoid
RuntimeBuilderContext.addPackage(CtPackage ctPackage)
void
TypeReferenceRuntimeBuilderContext.addPackage(CtPackage ctPackage)
void
TypeRuntimeBuilderContext.addPackage(CtPackage ctPackage)
-
Uses of CtPackage in spoon.support.visitor.replace
-
Uses of CtPackage in spoon.testing
Modifier and TypeMethodDescriptionstatic AbstractCtPackageAssert<?>
Assert.assertThat(CtPackage actual)
Create a new instance of
.CtPackageAssert
Verifies that the actual value is equal to the given one.ModifierConstructorDescriptionprotected
AbstractCtPackageAssert(CtPackage actual, Class<?> selfType)
CtPackageAssert(CtPackage actual)