Uses of Interface
spoon.reflect.declaration.CtNamedElement
Package
Description
This package contains legacy code of Spoon.
This package defines the Spoon's compile-time meta-model of Java programs.
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
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 visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains a set of useful filters when querying the model.
This package contains some default implementations for commonly used processing tasks.
-
Uses of CtNamedElement in spoon.legacy
Modifier and TypeClassDescriptionclass
NameFilter<T extends CtNamedElement>
Filters elements by name (for instance to find a method). -
Uses of CtNamedElement in spoon.refactoring
Modifier and TypeClassDescriptionclass
AbstractRenameRefactoring<T extends CtNamedElement>
abstract implementation of rename element refactoringinterface
CtRenameRefactoring<T extends CtNamedElement>
The kind of refactoring, which renames a `target` element to the `newName`
Usage: -
Uses of CtNamedElement in spoon.reflect
Modifier and TypeMethodDescription<T extends CtNamedElement>
TCtModelImpl.CtRootPackage.setSimpleName(String name)
-
Uses of CtNamedElement in spoon.reflect.code
Modifier and TypeInterfaceDescriptioninterface
This code element defines an exception variable in a catch.interface
CtLambda<T>
This code element represents the creation of a lambda.interface
This code element defines a local variable definition (within an executable body).interface
CtResource<T>
This code element defines a resource used in the try-with-resource statement. -
Uses of CtNamedElement in spoon.reflect.declaration
Modifier and TypeInterfaceDescriptioninterface
This element defines an annotation method declared in an annotation type.interface
CtAnnotationType<T extends Annotation>
This element defines an annotation type.interface
This element defines an anonymous executable block declaration in a class.interface
CtClass<T>
This element represents a class declaration.interface
This element defines a constructor declaration.interface
This element represents an enumeration declaration.interface
CtEnumValue<T>
Corresponds to one enum value specified in an enumeration.interface
CtExecutable<R>
This element represents an executable element such as a method, a constructor, or an anonymous block.interface
CtField<T>
This element defines a field declaration.interface
This abstract element defines a declaration that accepts formal type parameters (aka generics), such as a CtType (class A<E>
), CtMethod or CtConstructor.interface
CtInterface<T>
This element defines an interface declaration.interface
CtMethod<T>
This element defines a method declaration.interface
Represents a Java module as defined in Java 9.interface
This element defines a package declaration.interface
CtParameter<T>
This element defines an executable parameter declaration.interface
This element represents a record declaration.interface
This element represents a record component.interface
CtType<T>
This abstract element defines a super-type for classes and interfaces, which can declare methods.interface
This interface represents a member of a class (field, method, nested class or static/instance initializer).interface
This element defines a declaration of a type parameter (aka generics).interface
CtVariable<T>
This abstract element defines a variable declaration.Modifier and TypeMethodDescription<C extends CtNamedElement>
CCtAnonymousExecutable.setSimpleName(String simpleName)
<C extends CtNamedElement>
CCtConstructor.setSimpleName(String simpleName)
<T extends CtNamedElement>
TCtNamedElement.setSimpleName(String simpleName)
Sets the simple (unqualified) name of this element. -
Uses of CtNamedElement in spoon.reflect.factory
Modifier and TypeMethodDescription<R extends CtReference, E extends CtNamedElement>
List<R>CodeFactory.getReferences(List<E> elements)
Gets a list of references from a list of elements.<T extends CtNamedElement>
TModuleFactory.CtUnnamedModule.setSimpleName(String name)
-
Uses of CtNamedElement in spoon.reflect.visitor
Modifier and TypeMethodDescriptionLexicalScope.addNamedElement(CtNamedElement element)
adds an element to the scopevoid
CtInheritanceScanner.scanCtNamedElement(CtNamedElement e)
Scans an abstract named element.void
ElementPrinterHelper.visitCtNamedElement(CtNamedElement namedElement, CtCompilationUnit sourceCompilationUnit)
Modifier and TypeMethodDescription<T> T
LexicalScope.forEachElementByName(String name, Function<? super CtNamedElement,T> fnc)
-
Uses of CtNamedElement in spoon.reflect.visitor.filter
Modifier and TypeClassDescriptionclass
NamedElementFilter<T extends CtNamedElement>
Filters elements by name and by type (for instance to find a method). -
Uses of CtNamedElement in spoon.support
Modifier and TypeMethodDescriptionboolean
JavaOutputProcessor.isToBeProcessed(CtNamedElement candidate)
void
JavaOutputProcessor.process(CtNamedElement nameElement)
Creates a source file for each processed top-level type and pretty prints its contents. -
Uses of CtNamedElement in spoon.support.reflect.code
Modifier and TypeMethodDescription<C extends CtNamedElement>
CCtCatchVariableImpl.setSimpleName(String simpleName)
<C extends CtNamedElement>
CCtLambdaImpl.setSimpleName(String simpleName)
<C extends CtNamedElement>
CCtLocalVariableImpl.setSimpleName(String simpleName)
-
Uses of CtNamedElement in spoon.support.reflect.declaration
Modifier and TypeClassDescriptionclass
The implementation forCtAnnotationMethod
.class
CtAnnotationTypeImpl<T extends Annotation>
The implementation forCtAnnotationType
.class
class
CtClassImpl<T>
The implementation forCtClass
.class
class
CtEnumImpl<T extends Enum<?>>
class
class
The implementation forCtExecutable
.class
CtFieldImpl<T>
The implementation forCtField
.class
class
CtMethodImpl<T>
The implementation forCtMethod
.class
class
class
The implementation forCtPackage
.class
The implementation forCtParameter
.class
class
class
CtTypeImpl<T>
The implementation forCtType
.class
class
This class is used to represent the constructor of an array when calling with an expression likeModifier and TypeMethodDescription<T extends CtNamedElement>
TCtAnonymousExecutableImpl.setSimpleName(String simpleName)
<C extends CtNamedElement>
CCtConstructorImpl.setSimpleName(String simpleName)
<T extends CtNamedElement>
TCtNamedElementImpl.setSimpleName(String simpleName)
<T extends CtNamedElement>
TCtPackageImpl.setSimpleName(String simpleName)
<T extends CtNamedElement>
TCtRecordComponentImpl.setSimpleName(String simpleName)
<T extends CtNamedElement>
TCtTypeImpl.setSimpleName(String simpleName)
-
Uses of CtNamedElement in spoon.support.visitor
-
Uses of CtNamedElement in spoon.support.visitor.clone
Modifier and TypeMethodDescriptionvoid
CloneBuilder.scanCtNamedElement(CtNamedElement e)
Scans an abstract named element. -
Uses of CtNamedElement in spoon.support.visitor.equals