CloneSet7753


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.979class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19357
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java
29339
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PackageDeclaration.java
Clone Instance
1
Line Count
9
Source Line
357
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java

        /**
         * Resolves and returns the binding for the package, type, field, or
         * method named in this import declaration.
         * <p>
         * The name specified in a non-static single-type import can resolve
         * to a type (only). The name specified in a non-static on-demand
         * import can itself resolve to either a package or a type.
         * For static imports (introduced in JLS3), the name specified in a
         * static on-demand import can itself resolve to a type (only).
         * The name specified in a static single import can resolve to a
         * type, field, or method; in cases where the name could be resolved
         * to more than one element with that name (for example, two
         * methods both named "max", or a method and a field), this method
         * returns one of the plausible bindings.
         * </p>
         * <p>
         * Note that bindings are generally unavailable unless requested when the
         * AST is being built.
         * </p>
         * 
         * @return a package, type, field, or method binding, or <code>null</code>
         * if the binding cannot be resolved
         */
        public IBinding resolveBinding() {
                return this.ast.getBindingResolver().resolveImport(this );
        }

        /* (omit javadoc for this method)
         * Method declared on ASTNode.
         */
        int memSize() {
                return BASE_NODE_SIZE + 3 * 4;
        }


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

        /**
         * Resolves and returns the binding for the package declared in this package
         * declaration.
         * <p>
         * Note that bindings are generally unavailable unless requested when the
         * AST is being built.
         * </p>
         * 
         * @return the binding, or <code>null</code> if the binding cannot be 
         *    resolved
         */
        public IPackageBinding resolveBinding() {
                return this.ast.getBindingResolver().resolvePackage(this );
        }

        /* (omit javadoc for this method)
         * Method declared on ASTNode.
         */
        int memSize() {
                return BASE_NODE_SIZE + 3 * 4;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Resolves and returns the binding for the package declared in this package
         * declaration.
         * <p>
         * Note that bindings are generally unavailable unless requested when the
         * AST is being built.
         * </p>
         * 
         * @return the binding, or <code>null</code> if the binding cannot be 
         *    resolved
         */
/**
         * Resolves and returns the binding for the package, type, field, or
         * method named in this import declaration.
         * <p>
         * The name specified in a non-static single-type import can resolve
         * to a type (only). The name specified in a non-static on-demand
         * import can itself resolve to either a package or a type.
         * For static imports (introduced in JLS3), the name specified in a
         * static on-demand import can itself resolve to a type (only).
         * The name specified in a static single import can resolve to a
         * type, field, or method; in cases where the name could be resolved
         * to more than one element with that name (for example, two
         * methods both named "max", or a method and a field), this method
         * returns one of the plausible bindings.
         * </p>
         * <p>
         * Note that bindings are generally unavailable unless requested when the
         * AST is being built.
         * </p>
         * 
         * @return a package, type, field, or method binding, or <code>null</code>
         * if the binding cannot be resolved
         */
public [[#variable5b484a60]] resolveBinding() {
  return this.ast.getBindingResolver(). [[#variable5b484a40]](this );
}

/* (omit javadoc for this method)
         * Method declared on ASTNode.
         */
int memSize() {
  return BASE_NODE_SIZE + 3 * 4;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5b484a60]]
IPackageBinding 
12[[#5b484a60]]
IBinding 
21[[#5b484a40]]
resolvePackage 
22[[#5b484a40]]
resolveImport