Uses of Interface
spoon.reflect.declaration.CtPackage
Packages that use 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
Classes in spoon.reflect that implement CtPackageMethods in spoon.reflect that return CtPackageModifier and TypeMethodDescriptionCtModel.getRootPackage()
returns the root package of the unnamed moduleCtModelImpl.getRootPackage()
Methods in spoon.reflect that return types with arguments of type CtPackageModifier and TypeMethodDescriptionCtModel.getAllPackages()
returns all packages of the modelCtModelImpl.getAllPackages()
-
Uses of CtPackage in spoon.reflect.declaration
Methods in spoon.reflect.declaration with type parameters of type CtPackageModifier 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.Methods in spoon.reflect.declaration that return CtPackageModifier 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 exceptionMethods in spoon.reflect.declaration that return types with arguments of type CtPackageModifier and TypeMethodDescriptionCtPackage.getPackages()
Gets the set of included child packages.Methods in spoon.reflect.declaration with parameters of type CtPackageModifier 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)
Method parameters in spoon.reflect.declaration with type arguments of type CtPackageModifier and TypeMethodDescription<T extends CtPackage>
TCtPackage.setPackages(Set<CtPackage> pack)
Sets the children defined in this package -
Uses of CtPackage in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtPackageModifier 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.Methods in spoon.reflect.factory that return types with arguments of type CtPackageMethods in spoon.reflect.factory with parameters of type CtPackageModifier 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
Methods in spoon.reflect.reference that return CtPackageModifier and TypeMethodDescriptionCtPackageReference.getDeclaration()
Gets the package element when available in the source code. -
Uses of CtPackage in spoon.reflect.visitor
Methods in spoon.reflect.visitor with parameters of type CtPackageModifier 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
Methods in spoon.support that return CtPackageMethods in spoon.support with parameters of type CtPackageModifier 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
Methods in spoon.support.compiler.jdt with parameters of type CtPackage -
Uses of CtPackage in spoon.support.reflect.declaration
Classes in spoon.support.reflect.declaration that implement CtPackageFields in spoon.support.reflect.declaration with type parameters of type CtPackageMethods in spoon.support.reflect.declaration with type parameters of type CtPackageModifier and TypeMethodDescription<T extends CtPackage>
TCtPackageImpl.addPackage(CtPackage pack)
<T extends CtPackage>
T<T extends CtPackage>
TCtPackageImpl.setPackages(Set<CtPackage> packs)
<T extends CtPackage>
TMethods in spoon.support.reflect.declaration that return CtPackageModifier and TypeMethodDescriptionCtPackageImpl.clone()
CtCompilationUnitImpl.getDeclaredPackage()
CtPackageImpl.getDeclaringPackage()
CtPackageImpl.getPackage(String simpleName)
CtTypeImpl.getPackage()
CtTypeParameterImpl.getPackage()
CtModuleImpl.getRootPackage()
Methods in spoon.support.reflect.declaration that return types with arguments of type CtPackageMethods in spoon.support.reflect.declaration with parameters of type CtPackageModifier 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)
Method parameters in spoon.support.reflect.declaration with type arguments of type CtPackageModifier and TypeMethodDescription<T extends CtPackage>
TCtPackageImpl.setPackages(Set<CtPackage> packs)
-
Uses of CtPackage in spoon.support.reflect.reference
Methods in spoon.support.reflect.reference that return CtPackage -
Uses of CtPackage in spoon.support.visitor
Constructors in spoon.support.visitor with parameters of type CtPackage -
Uses of CtPackage in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtPackageModifier and TypeMethodDescriptionvoid
CloneBuilder.visitCtPackage(CtPackage e)
void
CloneVisitor.visitCtPackage(CtPackage ctPackage)
-
Uses of CtPackage in spoon.support.visitor.java.internal
Methods in spoon.support.visitor.java.internal that return CtPackageModifier and TypeMethodDescriptionPackageRuntimeBuilderContext.getPackage()
Returns the package belonging to this context.Methods in spoon.support.visitor.java.internal with parameters of type CtPackageModifier and TypeMethodDescriptionvoid
RuntimeBuilderContext.addPackage(CtPackage ctPackage)
void
TypeReferenceRuntimeBuilderContext.addPackage(CtPackage ctPackage)
void
TypeRuntimeBuilderContext.addPackage(CtPackage ctPackage)
Constructors in spoon.support.visitor.java.internal with parameters of type CtPackage -
Uses of CtPackage in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with parameters of type CtPackage -
Uses of CtPackage in spoon.testing
Methods in spoon.testing with parameters of type CtPackageModifier and TypeMethodDescriptionstatic AbstractCtPackageAssert<?>
Assert.assertThat(CtPackage actual)
Create a new instance of
.CtPackageAssert
Verifies that the actual value is equal to the given one.Constructors in spoon.testing with parameters of type CtPackageModifierConstructorDescriptionprotected
AbstractCtPackageAssert(CtPackage actual, Class<?> selfType)
CtPackageAssert(CtPackage actual)