CloneSet363


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
43220.991class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
143697
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java
243661
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java
Clone Instance
1
Line Count
43
Source Line
697
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java

        /*
         * @see ASTVisitor#visit(InfixExpression)
         */
        public boolean visit(InfixExpression node) {
                node.getLeftOperand().accept(this );
                this.buffer.append(' ');  // for cases like x= i - -1; or x= i++ + ++i;
                this.buffer.append(node.getOperator().toString());
                this.buffer.append(' ');
                node.getRightOperand().accept(this );
                final List extendedOperands = node.extendedOperands();
                if (extendedOperands.size() != 0) {
                        this.buffer.append(' ');
                        for (Iterator it = extendedOperands.iterator(); it.hasNext();)  {
                                this.buffer.append(node.getOperator().toString()).append(' ');
                                Expression e = (Expression) it.next();
                                e.accept(this );
                        }
                }
                return false;
        }

        /*
         * @see ASTVisitor#visit(InstanceofExpression)
         */
        public boolean visit(InstanceofExpression node) {
                node.getLeftOperand().accept(this );
                this.buffer.append(" instanceof "); //$NON-NLS-1$
                node.getRightOperand().accept(this );
                return false;
        }

        /*
         * @see ASTVisitor#visit(Initializer)
         */
        public boolean visit(Initializer node) {
                if (node.getJavadoc() != null) {
                        node.getJavadoc().accept(this );
                }
                if (node.getAST().apiLevel() == AST.JLS2_INTERNAL) {
                        printModifiers(node.getModifiers());
                }
                if (node.getAST().apiLevel() >= AST.JLS3) {
                        printModifiers(node.modifiers());
                }
                node.getBody().accept(this );
                return false;
        }


Clone Instance
2
Line Count
43
Source Line
661
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java

        /*
         * @see ASTVisitor#visit(InfixExpression)
         */
        public boolean visit(InfixExpression node) {
                node.getLeftOperand().accept(this );
                this.fBuffer.append(' '); // for cases like x= i - -1; or x= i++ + ++i;
                this.fBuffer.append(node.getOperator().toString());
                this.fBuffer.append(' ');
                node.getRightOperand().accept(this );
                final List extendedOperands = node.extendedOperands();
                if (extendedOperands.size() != 0) {
                        this.fBuffer.append(' ');
                        for (Iterator it = extendedOperands.iterator(); it.hasNext();)  {
                                this.fBuffer.append(node.getOperator().toString()).append(' ');
                                Expression e = (Expression) it.next();
                                e.accept(this );
                        }
                }
                return false;
        }

        /*
         * @see ASTVisitor#visit(InstanceofExpression)
         */
        public boolean visit(InstanceofExpression node) {
                node.getLeftOperand().accept(this );
                this.fBuffer.append(" instanceof "); //$NON-NLS-1$
                node.getRightOperand().accept(this );
                return false;
        }

        /*
         * @see ASTVisitor#visit(Initializer)
         */
        public boolean visit(Initializer node) {
                if (node.getJavadoc() != null) {
                        node.getJavadoc().accept(this );
                }
                if (node.getAST().apiLevel() == AST.JLS2) {
                        printModifiers(node.getModifiers());
                }
                if (node.getAST().apiLevel() >= AST.JLS3) {
                        printModifiers(node.modifiers());
                }
                node.getBody().accept(this );
                return false;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/*
         * @see ASTVisitor#visit(InfixExpression)
         */
public boolean visit(InfixExpression node) {
  node.getLeftOperand().accept(this );
  this. [[#variable64c61620]].append(' '); // for cases like x= i - -1; or x= i++ + ++i;
  this. [[#variable64c61620]].append(node.getOperator().toString());
  this. [[#variable64c61620]].append(' ');
  node.getRightOperand().accept(this );
  final List extendedOperands = node.extendedOperands();
  if (extendedOperands.size() != 0) {
    this. [[#variable64c61620]].append(' ');
    for (Iterator it = extendedOperands.iterator(); it.hasNext();) {
      this. [[#variable64c61620]].append(node.getOperator().toString()).append(' ');
      Expression e = (Expression) it.next();
      e.accept(this );
    }
  }
  return false;
}

/*
         * @see ASTVisitor#visit(InstanceofExpression)
         */
public boolean visit(InstanceofExpression node) {
  node.getLeftOperand().accept(this );
  this. [[#variable64c61620]].append(" instanceof "); //$NON-NLS-1$
  node.getRightOperand().accept(this );
  return false;
}

/*
         * @see ASTVisitor#visit(Initializer)
         */
public boolean visit(Initializer node) {
  if (node.getJavadoc() != null) {
    node.getJavadoc().accept(this );
  }
  if (node.getAST().apiLevel() == AST. [[#variable64c614a0]]) {
    printModifiers(node.getModifiers());
  }
  if (node.getAST().apiLevel() >= AST.JLS3) {
    printModifiers(node.modifiers());
  }
  node.getBody().accept(this );
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#64c61620]]
buffer 
12[[#64c61620]]
fBuffer 
21[[#64c614a0]]
JLS2_INTERNAL 
22[[#64c614a0]]
JLS2