Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.979 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 357 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java |
2 | 9 | 339 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PackageDeclaration.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; } |
| ||||
/** * 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; } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5b484a60]] | IPackageBinding |
1 | 2 | [[#5b484a60]] | IBinding |
2 | 1 | [[#5b484a40]] | resolvePackage |
2 | 2 | [[#5b484a40]] | resolveImport |