Uses of Interface
spoon.reflect.declaration.CtNamedElement
Packages that use 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
Classes in spoon.legacy with type parameters of type CtNamedElementModifier and TypeClassDescriptionclassNameFilter<T extends CtNamedElement>Filters elements by name (for instance to find a method). -
Uses of CtNamedElement in spoon.refactoring
Classes in spoon.refactoring with type parameters of type CtNamedElementModifier and TypeClassDescriptionclassAbstractRenameRefactoring<T extends CtNamedElement>abstract implementation of rename element refactoringinterfaceCtRenameRefactoring<T extends CtNamedElement>The kind of refactoring, which renames a `target` element to the `newName`
Usage:Fields in spoon.refactoring declared as CtNamedElement -
Uses of CtNamedElement in spoon.reflect
Classes in spoon.reflect that implement CtNamedElementMethods in spoon.reflect with type parameters of type CtNamedElementModifier and TypeMethodDescription<T extends CtNamedElement>
TCtModelImpl.CtRootPackage.setSimpleName(String name) -
Uses of CtNamedElement in spoon.reflect.code
Subinterfaces of CtNamedElement in spoon.reflect.codeModifier and TypeInterfaceDescriptioninterfaceThis code element defines an exception variable in a catch.interfaceCtLambda<T>This code element represents the creation of a lambda.interfaceThis code element defines a local variable definition (within an executable body).interfaceCtResource<T>This code element defines a resource used in the try-with-resource statement. -
Uses of CtNamedElement in spoon.reflect.declaration
Subinterfaces of CtNamedElement in spoon.reflect.declarationModifier and TypeInterfaceDescriptioninterfaceThis element defines an annotation method declared in an annotation type.interfaceCtAnnotationType<T extends Annotation>This element defines an annotation type.interfaceThis element defines an anonymous executable block declaration in a class.interfaceCtClass<T>This element represents a class declaration.interfaceThis element defines a constructor declaration.interfaceThis element represents an enumeration declaration.interfaceCtEnumValue<T>Corresponds to one enum value specified in an enumeration.interfaceCtExecutable<R>This element represents an executable element such as a method, a constructor, or an anonymous block.interfaceCtField<T>This element defines a field declaration.interfaceThis abstract element defines a declaration that accepts formal type parameters (aka generics), such as a CtType (class A<E>), CtMethod or CtConstructor.interfaceCtInterface<T>This element defines an interface declaration.interfaceCtMethod<T>This element defines a method declaration.interfaceRepresents a Java module as defined in Java 9.interfaceThis element defines a package declaration.interfaceCtParameter<T>This element defines an executable parameter declaration.interfaceThis element represents a record declaration.interfaceThis element represents a record component.interfaceCtType<T>This abstract element defines a super-type for classes and interfaces, which can declare methods.interfaceThis interface represents a member of a class (field, method, nested class or static/instance initializer).interfaceThis element defines a declaration of a type parameter (aka generics).interfaceCtVariable<T>This abstract element defines a variable declaration.Methods in spoon.reflect.declaration with type parameters of type CtNamedElementModifier 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.Methods in spoon.reflect.declaration that return CtNamedElement -
Uses of CtNamedElement in spoon.reflect.factory
Classes in spoon.reflect.factory that implement CtNamedElementMethods in spoon.reflect.factory with type parameters of type CtNamedElementModifier 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
Methods in spoon.reflect.visitor with parameters of type CtNamedElementModifier and TypeMethodDescriptionLexicalScope.addNamedElement(CtNamedElement element)adds an element to the scopevoidCtInheritanceScanner.scanCtNamedElement(CtNamedElement e)Scans an abstract named element.voidElementPrinterHelper.visitCtNamedElement(CtNamedElement namedElement, CtCompilationUnit sourceCompilationUnit)Method parameters in spoon.reflect.visitor with type arguments of type CtNamedElementModifier and TypeMethodDescription<T> TLexicalScope.forEachElementByName(String name, Function<? super CtNamedElement,T> fnc) -
Uses of CtNamedElement in spoon.reflect.visitor.filter
Classes in spoon.reflect.visitor.filter with type parameters of type CtNamedElementModifier and TypeClassDescriptionclassNamedElementFilter<T extends CtNamedElement>Filters elements by name and by type (for instance to find a method). -
Uses of CtNamedElement in spoon.support
Methods in spoon.support with parameters of type CtNamedElementModifier and TypeMethodDescriptionbooleanJavaOutputProcessor.isToBeProcessed(CtNamedElement candidate)voidJavaOutputProcessor.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
Classes in spoon.support.reflect.code that implement CtNamedElementMethods in spoon.support.reflect.code with type parameters of type CtNamedElementModifier 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
Classes in spoon.support.reflect.declaration that implement CtNamedElementModifier and TypeClassDescriptionclassThe implementation forCtAnnotationMethod.classCtAnnotationTypeImpl<T extends Annotation>The implementation forCtAnnotationType.classclassCtClassImpl<T>The implementation forCtClass.classclassCtEnumImpl<T extends Enum<?>>classclassThe implementation forCtExecutable.classCtFieldImpl<T>The implementation forCtField.classclassCtMethodImpl<T>The implementation forCtMethod.classclassclassThe implementation forCtPackage.classThe implementation forCtParameter.classclassclassCtTypeImpl<T>The implementation forCtType.classclassThis class is used to represent the constructor of an array when calling with an expression likeMethods in spoon.support.reflect.declaration with type parameters of type CtNamedElementModifier 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)Methods in spoon.support.reflect.declaration that return CtNamedElement -
Uses of CtNamedElement in spoon.support.visitor
Methods in spoon.support.visitor with parameters of type CtNamedElement -
Uses of CtNamedElement in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtNamedElementModifier and TypeMethodDescriptionvoidCloneBuilder.scanCtNamedElement(CtNamedElement e)Scans an abstract named element. -
Uses of CtNamedElement in spoon.support.visitor.equals
Methods in spoon.support.visitor.equals with parameters of type CtNamedElement