Class CloneVisitor
- java.lang.Object
-
- com.github.javaparser.ast.visitor.CloneVisitor
-
- All Implemented Interfaces:
GenericVisitor<Visitable,Object>
public class CloneVisitor extends Object implements GenericVisitor<Visitable,Object>
A visitor that clones (copies) a node and all its children.
-
-
Constructor Summary
Constructors Constructor Description CloneVisitor()
-
Method Summary
-
-
-
Method Detail
-
visit
public Visitable visit(CompilationUnit n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(PackageDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(TypeParameter n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(LineComment n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(BlockComment n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ClassOrInterfaceDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(EnumDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(EnumConstantDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(AnnotationDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(AnnotationMemberDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(FieldDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(VariableDeclarator n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ConstructorDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(MethodDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(Parameter n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(InitializerDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(JavadocComment n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ClassOrInterfaceType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(PrimitiveType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ArrayType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ArrayCreationLevel n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(IntersectionType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(UnionType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(VoidType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(WildcardType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(UnknownType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ArrayAccessExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ArrayCreationExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ArrayInitializerExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(AssignExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(BinaryExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(CastExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ClassExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ConditionalExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(EnclosedExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(FieldAccessExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(InstanceOfExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(StringLiteralExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(IntegerLiteralExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(LongLiteralExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(CharLiteralExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(DoubleLiteralExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(BooleanLiteralExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(NullLiteralExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(MethodCallExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(NameExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ObjectCreationExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(Name n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(SimpleName n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ThisExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(SuperExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(UnaryExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(VariableDeclarationExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(MarkerAnnotationExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(SingleMemberAnnotationExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(NormalAnnotationExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(MemberValuePair n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ExplicitConstructorInvocationStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(LocalClassDeclarationStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(AssertStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(BlockStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(LabeledStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(EmptyStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ExpressionStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(SwitchStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(SwitchEntryStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(BreakStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ReturnStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(IfStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(WhileStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ContinueStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(DoStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ForEachStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ForStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ThrowStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(SynchronizedStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(TryStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(CatchClause n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(LambdaExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(MethodReferenceExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(TypeExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(NodeList n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Node visit(ImportDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ModuleDeclaration n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ModuleRequiresDirective n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ModuleExportsDirective n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ModuleProvidesDirective n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ModuleUsesDirective n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ModuleOpensDirective n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(UnparsableStmt n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(ReceiverParameter n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(VarType n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(Modifier n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
visit
public Visitable visit(SwitchExpr n, Object arg)
- Specified by:
visit
in interfaceGenericVisitor<Visitable,Object>
-
-