protected ASTNode cloneHelper(AST target, ModulePackageAccess result) { result.setSourceRange(getStartPosition(), getLength()); result.setName((Name) getName().clone(target)); result.modules().addAll(ASTNode.copySubtrees(target, modules())); return result; }
protected ASTNode cloneHelper(AST target, ModulePackageAccess result) { result.setSourceRange(getStartPosition(), getLength()); result.setName((Name) getName().clone(target)); result.modules().addAll(ASTNode.copySubtrees(target, modules())); return result; }
@Override ASTNode clone0(AST target) { UsesDirective result = new UsesDirective(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((Name) getName().clone(target)); return result; }
@Override ASTNode clone0(AST target) { UsesDirective result = new UsesDirective(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((Name) getName().clone(target)); return result; }
ASTNode clone0(AST target) { SimpleType result = new SimpleType(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((Name) (getName()).clone(target)); return result; }
ASTNode clone0(AST target) { SimpleType result = new SimpleType(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel >= AST.JLS8) { result.annotations().addAll( ASTNode.copySubtrees(target, annotations())); } result.setName((Name) (getName()).clone(target)); return result; }
@Override ASTNode clone0(AST target) { SimpleType result = new SimpleType(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel >= AST.JLS8_INTERNAL) { result.annotations().addAll( ASTNode.copySubtrees(target, annotations())); } result.setName((Name) (getName()).clone(target)); return result; }
@Override ASTNode clone0(AST target) { ProvidesDirective result = new ProvidesDirective(target); result.setSourceRange(getStartPosition(), getLength()); result.setName((Name) getName().clone(target)); result.implementations().addAll(ASTNode.copySubtrees(target, implementations())); return result; }
ASTNode clone0(AST target) { SimpleType result = new SimpleType(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel >= AST.JLS8) { result.annotations().addAll( ASTNode.copySubtrees(target, annotations())); } result.setName((Name) (getName()).clone(target)); return result; }
ASTNode clone0(AST target) { PackageDeclaration result = new PackageDeclaration(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.setJavadoc((Javadoc) ASTNode.copySubtree(target, getJavadoc())); result.annotations().addAll(ASTNode.copySubtrees(target, annotations())); } result.setName((Name) getName().clone(target)); return result; }
@Override ASTNode clone0(AST target) { PackageDeclaration result = new PackageDeclaration(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.setJavadoc((Javadoc) ASTNode.copySubtree(target, getJavadoc())); result.annotations().addAll(ASTNode.copySubtrees(target, annotations())); } result.setName((Name) getName().clone(target)); return result; }
ASTNode clone0(AST target) { PackageDeclaration result = new PackageDeclaration(target); result.setSourceRange(getStartPosition(), getLength()); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.setJavadoc((Javadoc) ASTNode.copySubtree(target, getJavadoc())); result.annotations().addAll(ASTNode.copySubtrees(target, annotations())); } result.setName((Name) getName().clone(target)); return result; }
ASTNode clone0(AST target) { QualifiedName result = new QualifiedName(target); result.setSourceRange(getStartPosition(), getLength()); result.setQualifier((Name) getQualifier().clone(target)); result.setName((SimpleName) getName().clone(target)); return result; }
ASTNode clone0(AST target) { QualifiedName result = new QualifiedName(target); result.setSourceRange(getStartPosition(), getLength()); result.setQualifier((Name) getQualifier().clone(target)); result.setName((SimpleName) getName().clone(target)); return result; }
@SuppressWarnings("unchecked") @Override ASTNode clone0(AST target) { ModuleDeclaration result = new ModuleDeclaration(target); result.setSourceRange(getStartPosition(), getLength()); result.setJavadoc((Javadoc) ASTNode.copySubtree(target, getJavadoc())); result.setOpen(isOpen()); result.annotations().addAll(ASTNode.copySubtrees(target, annotations())); result.setName((SimpleName) getName().clone(target)); result.moduleStatements().addAll(ASTNode.copySubtrees(target, moduleStatements())); return result; }
ASTNode clone0(AST target) { QualifiedName result = new QualifiedName(target); result.setSourceRange(getStartPosition(), getLength()); result.setQualifier((Name) getQualifier().clone(target)); result.setName((SimpleName) getName().clone(target)); return result; }
ASTNode clone0(AST target) { QualifiedName result = new QualifiedName(target); result.setSourceRange(getStartPosition(), getLength()); result.setQualifier((Name) getQualifier().clone(target)); result.setName((SimpleName) getName().clone(target)); return result; }
@Override ASTNode clone0(AST target) { ImportDeclaration result = new ImportDeclaration(target); result.setSourceRange(getStartPosition(), getLength()); result.setOnDemand(isOnDemand()); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.setStatic(isStatic()); } result.setName((Name) getName().clone(target)); return result; }
ASTNode clone0(AST target) { ImportDeclaration result = new ImportDeclaration(target); result.setSourceRange(getStartPosition(), getLength()); result.setOnDemand(isOnDemand()); if (this.ast.apiLevel >= AST.JLS3_INTERNAL) { result.setStatic(isStatic()); } result.setName((Name) getName().clone(target)); return result; }
ASTNode clone0(AST target) { ImportDeclaration result = new ImportDeclaration(target); result.setSourceRange(getStartPosition(), getLength()); result.setOnDemand(isOnDemand()); if (this.ast.apiLevel >= AST.JLS3) { result.setStatic(isStatic()); } result.setName((Name) getName().clone(target)); return result; }