CloneSet3787


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.983class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19451
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java
29475
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java
Clone Instance
1
Line Count
9
Source Line
451
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java

        /**
         * Returns the extended source length of the given node. Unlike
         * {@link ASTNode#getStartPosition()} and {@link ASTNode#getLength()},
         * the extended source range may include comments and whitespace
         * immediately before or after the normal source range for the node.
         * 
         * @param node the node
         * @return a (possibly 0) length, or <code>0</code>
         *    if no source position information is recorded for this node
         * @see #getExtendedStartPosition(ASTNode)
         * @since 3.0
         */
        public int getExtendedLength(ASTNode node) {
                if (node == null) {
                        throw new IllegalArgumentException();
                }
                if (this.commentMapper == null || node.getAST() != getAST()) {
                        // fall back: use best info available
                        return node.getLength();
                }
                else   {
                        return this.commentMapper.getExtendedLength(node);
                }
        }


Clone Instance
2
Line Count
9
Source Line
475
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java

        /**
         * Returns the extended start position of the given node. Unlike
         * {@link ASTNode#getStartPosition()} and {@link ASTNode#getLength()},
         * the extended source range may include comments and whitespace
         * immediately before or after the normal source range for the node.
         * 
         * @param node the node
         * @return the 0-based character index, or <code>-1</code>
         *    if no source position information is recorded for this node
         * @see #getExtendedLength(ASTNode)
         * @since 3.0
         */
        public int getExtendedStartPosition(ASTNode node) {
                if (node == null) {
                        throw new IllegalArgumentException();
                }
                if (this.commentMapper == null || node.getAST() != getAST()) {
                        // fall back: use best info available
                        return node.getStartPosition();
                }
                else   {
                        return this.commentMapper.getExtendedStartPosition(node);
                }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Returns the extended source length of the given node. Unlike
         * {@link ASTNode#getStartPosition()} and {@link ASTNode#getLength()},
         * the extended source range may include comments and whitespace
         * immediately before or after the normal source range for the node.
         * 
         * @param node the node
         * @return a (possibly 0) length, or <code>0</code>
         *    if no source position information is recorded for this node
         * @see #getExtendedStartPosition(ASTNode)
         * @since 3.0
         */
/**
         * Returns the extended start position of the given node. Unlike
         * {@link ASTNode#getStartPosition()} and {@link ASTNode#getLength()},
         * the extended source range may include comments and whitespace
         * immediately before or after the normal source range for the node.
         * 
         * @param node the node
         * @return the 0-based character index, or <code>-1</code>
         *    if no source position information is recorded for this node
         * @see #getExtendedLength(ASTNode)
         * @since 3.0
         */
public int  [[#variable648d7ac0]](ASTNode node) {
  if (node == null) {
    throw new IllegalArgumentException();
  }
  if (this.commentMapper == null || node.getAST() != getAST()) {
    // fall back: use best info available
    return node. [[#variable648d7a60]]();
  }
  else {
    return this.commentMapper. [[#variable648d7ac0]](node);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#648d7ac0]]
getExtendedLength 
12[[#648d7ac0]]
getExtendedStartPosition 
21[[#648d7a60]]
getLength 
22[[#648d7a60]]
getStartPosition