Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 1 | 0.972 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 1543 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.java |
2 | 10 | 177 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java |
| ||||
/** * Returns the modifier flags relevant in the context, or * <code>Flags.AccDefault</code> if none. * <p> * This field is available for the following kinds of * completion proposals: * <ul> * <li><code>ANNOTATION_ATTRIBUT_REF</code> - modifier flags * of the attribute that is referenced; * <li><code>ANONYMOUS_CLASS_DECLARATION</code> - modifier flags * of the constructor that is referenced</li> * <li><code>FIELD_REF</code> - modifier flags * of the field that is referenced; * <code>Flags.AccEnum</code> can be used to recognize * references to enum constants * </li> * <li><code>KEYWORD</code> - modifier flag * corrresponding to the modifier keyword</li> * <li><code>LOCAL_VARIABLE_REF</code> - modifier flags * of the local variable that is referenced</li> * <li><code>METHOD_REF</code> - modifier flags * of the method that is referenced; * <code>Flags.AccAnnotation</code> can be used to recognize * references to annotation type members * </li> * <li><code>METHOD_DECLARATION</code> - modifier flags * for the method that is being implemented or overridden</li> * <li><code>TYPE_REF</code> - modifier flags * of the type that is referenced; <code>Flags.AccInterface</code> * can be used to recognize references to interfaces, * <code>Flags.AccEnum</code> enum types, * and <code>Flags.AccAnnotation</code> annotation types * </li> * <li><code>VARIABLE_DECLARATION</code> - modifier flags * for the variable being declared</li> * <li><code>POTENTIAL_METHOD_DECLARATION</code> - modifier flags * for the method that is being created</li> * </ul> * For other kinds of completion proposals, this method returns * <code>Flags.AccDefault</code>. * </p> * * @return the modifier flags, or * <code>Flags.AccDefault</code> if none * @see Flags */ public int getFlags() { return this.flags; } /** * Sets the modifier flags relevant in the context. * <p> * If not set, defaults to none. * </p> * <p> * The completion engine creates instances of this class and sets * its properties; this method is not intended to be used by other clients. * </p> * * @param flags the modifier flags, or * <code>Flags.AccDefault</code> if none */ public void setFlags(int flags) { this.flags = flags; } |
| ||||
/** * @see IDOMImport#getFlags() * @since 3.0 */ public int getFlags() { return this.fFlags; } /** * @see IDOMImport#setFlags(int) * @since 3.0 */ public void setFlags(int flags) { this.fFlags = flags; } |
| |||
/** * Returns the modifier flags relevant in the context, or * <code>Flags.AccDefault</code> if none. * <p> * This field is available for the following kinds of * completion proposals: * <ul> * <li><code>ANNOTATION_ATTRIBUT_REF</code> - modifier flags * of the attribute that is referenced; * <li><code>ANONYMOUS_CLASS_DECLARATION</code> - modifier flags * of the constructor that is referenced</li> * <li><code>FIELD_REF</code> - modifier flags * of the field that is referenced; * <code>Flags.AccEnum</code> can be used to recognize * references to enum constants * </li> * <li><code>KEYWORD</code> - modifier flag * corrresponding to the modifier keyword</li> * <li><code>LOCAL_VARIABLE_REF</code> - modifier flags * of the local variable that is referenced</li> * <li><code>METHOD_REF</code> - modifier flags * of the method that is referenced; * <code>Flags.AccAnnotation</code> can be used to recognize * references to annotation type members * </li> * <li><code>METHOD_DECLARATION</code> - modifier flags * for the method that is being implemented or overridden</li> * <li><code>TYPE_REF</code> - modifier flags * of the type that is referenced; <code>Flags.AccInterface</code> * can be used to recognize references to interfaces, * <code>Flags.AccEnum</code> enum types, * and <code>Flags.AccAnnotation</code> annotation types * </li> * <li><code>VARIABLE_DECLARATION</code> - modifier flags * for the variable being declared</li> * <li><code>POTENTIAL_METHOD_DECLARATION</code> - modifier flags * for the method that is being created</li> * </ul> * For other kinds of completion proposals, this method returns * <code>Flags.AccDefault</code>. * </p> * * @return the modifier flags, or * <code>Flags.AccDefault</code> if none * @see Flags */ /** * @see IDOMImport#getFlags() * @since 3.0 */ public int getFlags() { return this. [[#variablea0f73d40]]; } /** * Sets the modifier flags relevant in the context. * <p> * If not set, defaults to none. * </p> * <p> * The completion engine creates instances of this class and sets * its properties; this method is not intended to be used by other clients. * </p> * * @param flags the modifier flags, or * <code>Flags.AccDefault</code> if none */ /** * @see IDOMImport#setFlags(int) * @since 3.0 */ public void setFlags(int flags) { this. [[#variablea0f73d40]]= flags; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a0f73d40]] | flags |
1 | 2 | [[#a0f73d40]] | fFlags |