CloneSet9817


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19210.972class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1191543
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.java
210177
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java
Clone Instance
1
Line Count
19
Source Line
1543
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.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;
        }


Clone Instance
2
Line Count
10
Source Line
177
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java

/**
 * @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;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a0f73d40]]
flags 
12[[#a0f73d40]]
fFlags