Package spoon.support.visitor.clone
Class CloneBuilder
java.lang.Object
spoon.reflect.visitor.CtInheritanceScanner
spoon.support.visitor.clone.CloneBuilder
- All Implemented Interfaces:
CtVisitor
Used to set all data in the cloned element.
This class is generated automatically by the processor spoon.generating.CloneVisitorGenerator.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CtElement>
Tbuild(CloneBuilder builder, CtElement element, CtElement other)
void
void
Scans an abstract element.void
Scans an abstract named element.void
scanCtReference(CtReference reference)
Scans an abstract reference.void
Scans an abstract statement.<T> void
scanCtType(CtType<T> type)
Scans an abstract type.void
<A extends Annotation>
voidvisitCtAnnotation(CtAnnotation<A> e)
Visits an annotation.void
Visits an anonymous executable.<T> void
Visits a binary operator.void
visitCtBreak(CtBreak e)
Visits abreak
statement.<E> void
visitCtCase(CtCase<E> e)
Visits acase
clause.<T> void
Visits a catch variable declaration.<T> void
Visits a code snippet expression.void
Visits a code snippet statement.void
Visits a commentvoid
visitCtCompilationUnit(CtCompilationUnit compilationUnit)
Visits a compilation unit<T> void
visitCtConstructor(CtConstructor<T> e)
Visits a constructor declaration.<T> void
Visits a call to a constructor.void
Visits acontinue
statement.<T> void
Visits a reference to an executable.<T> void
visitCtField(CtField<T> e)
Visits a field declaration.<T> void
Visits a reference to a field.<T> void
visitCtInvocation(CtInvocation<T> e)
Visits an executable invocation.void
Visits a javadoc tag<T> void
visitCtLambda(CtLambda<T> e)
Visits an anonymous method construction.<T> void
visitCtLiteral(CtLiteral<T> e)
Visits a literal expression.<T> void
Visits a local variable declaration.<T> void
visitCtMethod(CtMethod<T> e)
Visits a method declaration.void
visitCtModule(CtModule module)
Visits a module declarationvoid
visitCtModuleRequirement(CtModuleRequirement moduleRequirement)
Visits a "require" directive in a module declaration.<T, A extends T>
voidvisitCtOperatorAssignement(CtOperatorAssignment<T,A> assignment)
<T, A extends T>
voidVisits an operator assignment.void
Visits a package declaration.void
visitCtPackageExport(CtPackageExport moduleExport)
Visits a package export in a module declaration.<T> void
visitCtParameter(CtParameter<T> e)
Visits a parameter declaration.void
visitCtRecordComponent(CtRecordComponent recordComponent)
Visits a record component.<T> void
Visits a reference to a type.<T> void
Visits a unary operator.void
visitCtWildcardReference(CtWildcardReference wildcardReference)
Visits a reference to a wildcard.Methods inherited from class spoon.reflect.visitor.CtInheritanceScanner
scan, scan, scanCtAbstractInvocation, scanCtAbstractSwitch, scanCtActualTypeContainer, scanCtArrayAccess, scanCtBodyHolder, scanCtCFlowBreak, scanCtCodeElement, scanCtCodeSnippet, scanCtExecutable, scanCtExpression, scanCtFieldAccess, scanCtFormalTypeDeclarer, scanCtLabelledFlowBreak, scanCtLoop, scanCtModifiable, scanCtModuleDirective, scanCtMultiTypedElement, scanCtPattern, scanCtResource, scanCtRHSReceiver, scanCtSealable, scanCtShadowable, scanCtTargetedExpression, scanCtTypedElement, scanCtTypeInformation, scanCtTypeMember, scanCtVariable, scanCtVariableAccess, scanCtVariableReference, scanCtVisitable, visitCtAnnotationFieldAccess, visitCtAnnotationMethod, visitCtAnnotationType, visitCtArrayRead, visitCtArrayTypeReference, visitCtArrayWrite, visitCtAssert, visitCtAssignment, visitCtBlock, visitCtCatch, visitCtCatchVariableReference, visitCtClass, visitCtConditional, visitCtDo, visitCtEnum, visitCtEnumValue, visitCtExecutableReferenceExpression, visitCtFieldRead, visitCtFieldWrite, visitCtFor, visitCtForEach, visitCtIf, visitCtImport, visitCtInterface, visitCtIntersectionTypeReference, visitCtJavaDoc, visitCtLocalVariableReference, visitCtModuleReference, visitCtNewArray, visitCtNewClass, visitCtPackageDeclaration, visitCtPackageReference, visitCtParameterReference, visitCtProvidedService, visitCtRecord, visitCtReturn, visitCtStatementList, visitCtSuperAccess, visitCtSwitch, visitCtSwitchExpression, visitCtSynchronized, visitCtTextBlock, visitCtThisAccess, visitCtThrow, visitCtTry, visitCtTryWithResource, visitCtTypeAccess, visitCtTypeMemberWildcardImportReference, visitCtTypeParameter, visitCtTypeParameterReference, visitCtTypePattern, visitCtUnboundVariableReference, visitCtUsedService, visitCtVariableRead, visitCtVariableWrite, visitCtWhile, visitCtYieldStatement
-
Constructor Details
-
CloneBuilder
public CloneBuilder()
-
-
Method Details
-
copy
-
build
public static <T extends CtElement> T build(CloneBuilder builder, CtElement element, CtElement other) -
setOther
-
visitCtCodeSnippetExpression
Description copied from interface:CtVisitor
Visits a code snippet expression.- Specified by:
visitCtCodeSnippetExpression
in interfaceCtVisitor
- Overrides:
visitCtCodeSnippetExpression
in classCtInheritanceScanner
-
visitCtCodeSnippetStatement
Description copied from interface:CtVisitor
Visits a code snippet statement.- Specified by:
visitCtCodeSnippetStatement
in interfaceCtVisitor
- Overrides:
visitCtCodeSnippetStatement
in classCtInheritanceScanner
-
scanCtElement
Scans an abstract element.- Overrides:
scanCtElement
in classCtInheritanceScanner
-
scanCtNamedElement
Scans an abstract named element.- Overrides:
scanCtNamedElement
in classCtInheritanceScanner
-
scanCtReference
Scans an abstract reference.- Overrides:
scanCtReference
in classCtInheritanceScanner
-
scanCtStatement
Scans an abstract statement.- Overrides:
scanCtStatement
in classCtInheritanceScanner
-
scanCtType
Scans an abstract type.- Overrides:
scanCtType
in classCtInheritanceScanner
-
visitCtOperatorAssignment
Description copied from interface:CtVisitor
Visits an operator assignment.- Specified by:
visitCtOperatorAssignment
in interfaceCtVisitor
- Overrides:
visitCtOperatorAssignment
in classCtInheritanceScanner
-
visitCtAnnotation
Description copied from interface:CtVisitor
Visits an annotation.- Specified by:
visitCtAnnotation
in interfaceCtVisitor
- Overrides:
visitCtAnnotation
in classCtInheritanceScanner
-
visitCtAnonymousExecutable
Description copied from interface:CtVisitor
Visits an anonymous executable.- Specified by:
visitCtAnonymousExecutable
in interfaceCtVisitor
- Overrides:
visitCtAnonymousExecutable
in classCtInheritanceScanner
-
visitCtBinaryOperator
Description copied from interface:CtVisitor
Visits a binary operator.- Specified by:
visitCtBinaryOperator
in interfaceCtVisitor
- Overrides:
visitCtBinaryOperator
in classCtInheritanceScanner
-
visitCtBreak
Description copied from interface:CtVisitor
Visits abreak
statement.- Specified by:
visitCtBreak
in interfaceCtVisitor
- Overrides:
visitCtBreak
in classCtInheritanceScanner
-
visitCtCase
Description copied from interface:CtVisitor
Visits acase
clause.- Specified by:
visitCtCase
in interfaceCtVisitor
- Overrides:
visitCtCase
in classCtInheritanceScanner
-
visitCtConstructor
Description copied from interface:CtVisitor
Visits a constructor declaration.- Specified by:
visitCtConstructor
in interfaceCtVisitor
- Overrides:
visitCtConstructor
in classCtInheritanceScanner
-
visitCtContinue
Description copied from interface:CtVisitor
Visits acontinue
statement.- Specified by:
visitCtContinue
in interfaceCtVisitor
- Overrides:
visitCtContinue
in classCtInheritanceScanner
-
visitCtExecutableReference
Description copied from interface:CtVisitor
Visits a reference to an executable.- Specified by:
visitCtExecutableReference
in interfaceCtVisitor
- Overrides:
visitCtExecutableReference
in classCtInheritanceScanner
-
visitCtField
Description copied from interface:CtVisitor
Visits a field declaration.- Specified by:
visitCtField
in interfaceCtVisitor
- Overrides:
visitCtField
in classCtInheritanceScanner
-
visitCtFieldReference
Description copied from interface:CtVisitor
Visits a reference to a field.- Specified by:
visitCtFieldReference
in interfaceCtVisitor
- Overrides:
visitCtFieldReference
in classCtInheritanceScanner
-
visitCtInvocation
Description copied from interface:CtVisitor
Visits an executable invocation.- Specified by:
visitCtInvocation
in interfaceCtVisitor
- Overrides:
visitCtInvocation
in classCtInheritanceScanner
-
visitCtLiteral
Description copied from interface:CtVisitor
Visits a literal expression.- Specified by:
visitCtLiteral
in interfaceCtVisitor
- Overrides:
visitCtLiteral
in classCtInheritanceScanner
-
visitCtLocalVariable
Description copied from interface:CtVisitor
Visits a local variable declaration.- Specified by:
visitCtLocalVariable
in interfaceCtVisitor
- Overrides:
visitCtLocalVariable
in classCtInheritanceScanner
-
visitCtCatchVariable
Description copied from interface:CtVisitor
Visits a catch variable declaration.- Specified by:
visitCtCatchVariable
in interfaceCtVisitor
- Overrides:
visitCtCatchVariable
in classCtInheritanceScanner
-
visitCtMethod
Description copied from interface:CtVisitor
Visits a method declaration.- Specified by:
visitCtMethod
in interfaceCtVisitor
- Overrides:
visitCtMethod
in classCtInheritanceScanner
-
visitCtConstructorCall
Description copied from interface:CtVisitor
Visits a call to a constructor.- Specified by:
visitCtConstructorCall
in interfaceCtVisitor
- Overrides:
visitCtConstructorCall
in classCtInheritanceScanner
-
visitCtLambda
Description copied from interface:CtVisitor
Visits an anonymous method construction.- Specified by:
visitCtLambda
in interfaceCtVisitor
- Overrides:
visitCtLambda
in classCtInheritanceScanner
-
visitCtOperatorAssignement
- Overrides:
visitCtOperatorAssignement
in classCtInheritanceScanner
-
visitCtPackage
Description copied from interface:CtVisitor
Visits a package declaration.- Specified by:
visitCtPackage
in interfaceCtVisitor
- Overrides:
visitCtPackage
in classCtInheritanceScanner
-
visitCtParameter
Description copied from interface:CtVisitor
Visits a parameter declaration.- Specified by:
visitCtParameter
in interfaceCtVisitor
- Overrides:
visitCtParameter
in classCtInheritanceScanner
-
visitCtWildcardReference
Description copied from interface:CtVisitor
Visits a reference to a wildcard.- Specified by:
visitCtWildcardReference
in interfaceCtVisitor
- Overrides:
visitCtWildcardReference
in classCtInheritanceScanner
-
visitCtTypeReference
Description copied from interface:CtVisitor
Visits a reference to a type.- Specified by:
visitCtTypeReference
in interfaceCtVisitor
- Overrides:
visitCtTypeReference
in classCtInheritanceScanner
-
visitCtUnaryOperator
Description copied from interface:CtVisitor
Visits a unary operator.- Specified by:
visitCtUnaryOperator
in interfaceCtVisitor
- Overrides:
visitCtUnaryOperator
in classCtInheritanceScanner
-
visitCtComment
Description copied from interface:CtVisitor
Visits a comment- Specified by:
visitCtComment
in interfaceCtVisitor
- Overrides:
visitCtComment
in classCtInheritanceScanner
-
visitCtJavaDocTag
Description copied from interface:CtVisitor
Visits a javadoc tag- Specified by:
visitCtJavaDocTag
in interfaceCtVisitor
- Overrides:
visitCtJavaDocTag
in classCtInheritanceScanner
-
visitCtModule
Description copied from interface:CtVisitor
Visits a module declaration- Specified by:
visitCtModule
in interfaceCtVisitor
- Overrides:
visitCtModule
in classCtInheritanceScanner
-
visitCtPackageExport
Description copied from interface:CtVisitor
Visits a package export in a module declaration.- Specified by:
visitCtPackageExport
in interfaceCtVisitor
- Overrides:
visitCtPackageExport
in classCtInheritanceScanner
-
visitCtModuleRequirement
Description copied from interface:CtVisitor
Visits a "require" directive in a module declaration.- Specified by:
visitCtModuleRequirement
in interfaceCtVisitor
- Overrides:
visitCtModuleRequirement
in classCtInheritanceScanner
-
visitCtCompilationUnit
Description copied from interface:CtVisitor
Visits a compilation unit- Specified by:
visitCtCompilationUnit
in interfaceCtVisitor
- Overrides:
visitCtCompilationUnit
in classCtInheritanceScanner
-
visitCtRecordComponent
Description copied from interface:CtVisitor
Visits a record component.- Specified by:
visitCtRecordComponent
in interfaceCtVisitor
- Overrides:
visitCtRecordComponent
in classCtInheritanceScanner
- Parameters:
recordComponent
- the record component to visit.
-