Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 16 | 5 | 0.952 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 310 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java |
2 | 15 | 336 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java |
3 | 15 | 362 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java |
4 | 15 | 388 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java |
5 | 15 | 414 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java |
6 | 11 | 167 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
7 | 11 | 186 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
8 | 11 | 215 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
9 | 11 | 233 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
10 | 11 | 252 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
11 | 12 | 270 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
12 | 11 | 289 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
13 | 15 | 311 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
14 | 15 | 337 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java |
15 | 6 | 130 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java |
16 | 6 | 398 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java |
| ||||
/** * Returns whether the given flags includes the "abstract" modifier. * Applicable to types and methods. * * @param flags the modifier flags * @return <code>true</code> if the <code>ABSTRACT</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isAbstract(int flags) { return (flags& ABSTRACT) != 0; } /** * Returns whether the given flags includes the "final" modifier. * Applicable to types, methods, fields, and variables. * * @param flags the modifier flags * @return <code>true</code> if the <code>FINAL</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isFinal(int flags) { return (flags& FINAL) != 0; } |
| ||||
/** * Returns whether the given flags includes the "native" modifier. * Applicable only to methods. * * @param flags the modifier flags * @return <code>true</code> if the <code>NATIVE</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isNative(int flags) { return (flags& NATIVE) != 0; } /** * Returns whether the given flags includes the "private" modifier. * Applicable to types, methods, constructors, and fields. * * @param flags the modifier flags * @return <code>true</code> if the <code>PRIVATE</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isPrivate(int flags) { return (flags& PRIVATE) != 0; } |
| ||||
/** * Returns whether the given flags includes the "protected" modifier. * Applicable to types, methods, constructors, and fields. * * @param flags the modifier flags * @return <code>true</code> if the <code>PROTECTED</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isProtected(int flags) { return (flags& PROTECTED) != 0; } /** * Returns whether the given flags includes the "public" modifier. * Applicable to types, methods, constructors, and fields. * * @param flags the modifier flags * @return <code>true</code> if the <code>PUBLIC</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isPublic(int flags) { return (flags& PUBLIC) != 0; } |
| ||||
/** * Returns whether the given flags includes the "static" modifier. * Applicable to types, methods, fields, and initializers. * * @param flags the modifier flags * @return <code>true</code> if the <code>STATIC</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isStatic(int flags) { return (flags& STATIC) != 0; } /** * Returns whether the given flags includes the "strictfp" modifier. * Applicable to types and methods. * * @param flags the modifier flags * @return <code>true</code> if the <code>STRICTFP</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isStrictfp(int flags) { return (flags& STRICTFP) != 0; } |
| ||||
/** * Returns whether the given flags includes the "synchronized" modifier. * Applicable only to methods. * * @param flags the modifier flags * @return <code>true</code> if the <code>SYNCHRONIZED</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isSynchronized(int flags) { return (flags& SYNCHRONIZED) != 0; } /** * Returns whether the given flags includes the "transient" modifier. * Applicable only to fields. * * @param flags the modifier flags * @return <code>true</code> if the <code>TRANSIENT</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public static boolean isTransient(int flags) { return (flags& TRANSIENT) != 0; } |
| ||||
/** * Returns whether the given integer includes the indication that the * element is deprecated (<code>@deprecated</code> tag in Javadoc comment). * * @param flags the flags * @return <code>true</code> if the element is marked as deprecated */ public static boolean isDeprecated(int flags) { return (flags& AccDeprecated) != 0; } /** * Returns whether the given integer includes the <code>final</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>final</code> modifier is included */ public static boolean isFinal(int flags) { return (flags& AccFinal) != 0; } |
| ||||
/** * Returns whether the given integer includes the <code>interface</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>interface</code> modifier is included * @since 2.0 */ public static boolean isInterface(int flags) { return (flags& AccInterface) != 0; } /** * Returns whether the given integer includes the <code>native</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>native</code> modifier is included */ public static boolean isNative(int flags) { return (flags& AccNative) != 0; } |
| ||||
/** * Returns whether the given integer includes the <code>private</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>private</code> modifier is included */ public static boolean isPrivate(int flags) { return (flags& AccPrivate) != 0; } /** * Returns whether the given integer includes the <code>protected</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>protected</code> modifier is included */ public static boolean isProtected(int flags) { return (flags& AccProtected) != 0; } |
| ||||
/** * Returns whether the given integer includes the <code>public</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>public</code> modifier is included */ public static boolean isPublic(int flags) { return (flags& AccPublic) != 0; } /** * Returns whether the given integer includes the <code>static</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>static</code> modifier is included */ public static boolean isStatic(int flags) { return (flags& AccStatic) != 0; } |
| ||||
/** * Returns whether the given integer includes the <code>super</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>super</code> modifier is included * @since 3.2 */ public static boolean isSuper(int flags) { return (flags& AccSuper) != 0; } /** * Returns whether the given integer includes the <code>strictfp</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>strictfp</code> modifier is included */ public static boolean isStrictfp(int flags) { return (flags& AccStrictfp) != 0; } |
| ||||
/** * Returns whether the given integer includes the <code>synchronized</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>synchronized</code> modifier is included */ public static boolean isSynchronized(int flags) { return (flags& AccSynchronized) != 0; } /** * Returns whether the given integer includes the indication that the * element is synthetic. * * @param flags the flags * @return <code>true</code> if the element is marked synthetic */ public static boolean isSynthetic(int flags) { return (flags& AccSynthetic) != 0; } |
| ||||
/** * Returns whether the given integer includes the <code>transient</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>transient</code> modifier is included */ public static boolean isTransient(int flags) { return (flags& AccTransient) != 0; } /** * Returns whether the given integer includes the <code>volatile</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>volatile</code> modifier is included */ public static boolean isVolatile(int flags) { return (flags& AccVolatile) != 0; } |
| ||||
/** * Returns whether the given integer has the <code>AccBridge</code> * bit set. * * @param flags the flags * @return <code>true</code> if the <code>AccBridge</code> flag is included * @see #AccBridge * @since 3.0 */ public static boolean isBridge(int flags) { return (flags& AccBridge) != 0; } /** * Returns whether the given integer has the <code>AccVarargs</code> * bit set. * * @param flags the flags * @return <code>true</code> if the <code>AccVarargs</code> flag is included * @see #AccVarargs * @since 3.0 */ public static boolean isVarargs(int flags) { return (flags& AccVarargs) != 0; } |
| ||||
/** * Returns whether the given integer has the <code>AccEnum</code> * bit set. * * @param flags the flags * @return <code>true</code> if the <code>AccEnum</code> flag is included * @see #AccEnum * @since 3.0 */ public static boolean isEnum(int flags) { return (flags& AccEnum) != 0; } /** * Returns whether the given integer has the <code>AccAnnotation</code> * bit set. * * @param flags the flags * @return <code>true</code> if the <code>AccAnnotation</code> flag is included * @see #AccAnnotation * @since 3.0 */ public static boolean isAnnotation(int flags) { return (flags& AccAnnotation) != 0; } |
| ||||
private static boolean useSmallSize(int flags) { return (flags& SMALL_ICONS) != 0; } private static boolean useLightIcons(int flags) { return (flags& LIGHT_TYPE_ICONS) != 0; } |
| ||||
private static boolean updateGetterMethod(int flags) { return (flags& UPDATE_GETTER_METHOD) != 0; } private static boolean updateSetterMethod(int flags) { return (flags& UPDATE_SETTER_METHOD) != 0; } |
| |||
[[#variableb76320a0]]static boolean [[#variableb30aa300]](int flags) { return (flags& [[#variableba635b00]]) != 0; } [[#variableb76320a0]]static boolean [[#variableb76320c0]](int flags) { return (flags& [[#variableb7632060]]) != 0; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b76320a0]] | /** * Returns whether the given flags includes the "synchronized" modifier. * Applicable only to methods. * * @param flags the modifier flags * @return <code>true</code> if the <code>SYNCHRONIZED</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public |
1 | 2 | [[#b76320a0]] | /** * Returns whether the given flags includes the "static" modifier. * Applicable to types, methods, fields, and initializers. * * @param flags the modifier flags * @return <code>true</code> if the <code>STATIC</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public |
1 | 3 | [[#b76320a0]] | /** * Returns whether the given flags includes the "protected" modifier. * Applicable to types, methods, constructors, and fields. * * @param flags the modifier flags * @return <code>true</code> if the <code>PROTECTED</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public |
1 | 4 | [[#b76320a0]] | /** * Returns whether the given flags includes the "native" modifier. * Applicable only to methods. * * @param flags the modifier flags * @return <code>true</code> if the <code>NATIVE</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public |
1 | 5 | [[#b76320a0]] | /** * Returns whether the given flags includes the "abstract" modifier. * Applicable to types and methods. * * @param flags the modifier flags * @return <code>true</code> if the <code>ABSTRACT</code> bit is * set, and <code>false</code> otherwise * @since 2.0 */ public |
1 | 6 | [[#b76320a0]] | /** * Returns whether the given integer has the <code>AccEnum</code> * bit set. * * @param flags the flags * @return <code>true</code> if the <code>AccEnum</code> flag is included * @see #AccEnum * @since 3.0 */ public |
1 | 7 | [[#b76320a0]] | /** * Returns whether the given integer has the <code>AccBridge</code> * bit set. * * @param flags the flags * @return <code>true</code> if the <code>AccBridge</code> flag is included * @see #AccBridge * @since 3.0 */ public |
1 | 8 | [[#b76320a0]] | /** * Returns whether the given integer includes the <code>transient</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>transient</code> modifier is included */ public |
1 | 9 | [[#b76320a0]] | /** * Returns whether the given integer includes the <code>synchronized</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>synchronized</code> modifier is included */ public |
1 | 10 | [[#b76320a0]] | /** * Returns whether the given integer includes the <code>super</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>super</code> modifier is included * @since 3.2 */ public |
1 | 11 | [[#b76320a0]] | /** * Returns whether the given integer includes the <code>public</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>public</code> modifier is included */ public |
1 | 12 | [[#b76320a0]] | /** * Returns whether the given integer includes the <code>private</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>private</code> modifier is included */ public |
1 | 13 | [[#b76320a0]] | /** * Returns whether the given integer includes the <code>interface</code> modifier. * * @param flags the flags * @return <code>true</code> if the <code>interface</code> modifier is included * @since 2.0 */ public |
1 | 14 | [[#b76320a0]] | /** * Returns whether the given integer includes the indication that the * element is deprecated (<code>@deprecated</code> tag in Javadoc comment). * * @param flags the flags * @return <code>true</code> if the element is marked as deprecated */ public |
1 | 15 | [[#b76320a0]] | private |
1 | 16 | [[#b76320a0]] | private |
2 | 1 | [[#b30aa300]] | isSynchronized |
2 | 2 | [[#b30aa300]] | isStatic |
2 | 3 | [[#b30aa300]] | isProtected |
2 | 4 | [[#b30aa300]] | isNative |
2 | 5 | [[#b30aa300]] | isAbstract |
2 | 6 | [[#b30aa300]] | isEnum |
2 | 7 | [[#b30aa300]] | isBridge |
2 | 8 | [[#b30aa300]] | isTransient |
2 | 9 | [[#b30aa300]] | isSynchronized |
2 | 10 | [[#b30aa300]] | isSuper |
2 | 11 | [[#b30aa300]] | isPublic |
2 | 12 | [[#b30aa300]] | isPrivate |
2 | 13 | [[#b30aa300]] | isInterface |
2 | 14 | [[#b30aa300]] | isDeprecated |
2 | 15 | [[#b30aa300]] | useSmallSize |
2 | 16 | [[#b30aa300]] | updateGetterMethod |
3 | 1 | [[#ba635b00]] | SYNCHRONIZED |
3 | 2 | [[#ba635b00]] | STATIC |
3 | 3 | [[#ba635b00]] | PROTECTED |
3 | 4 | [[#ba635b00]] | NATIVE |
3 | 5 | [[#ba635b00]] | ABSTRACT |
3 | 6 | [[#ba635b00]] | AccEnum |
3 | 7 | [[#ba635b00]] | AccBridge |
3 | 8 | [[#ba635b00]] | AccTransient |
3 | 9 | [[#ba635b00]] | AccSynchronized |
3 | 10 | [[#ba635b00]] | AccSuper |
3 | 11 | [[#ba635b00]] | AccPublic |
3 | 12 | [[#ba635b00]] | AccPrivate |
3 | 13 | [[#ba635b00]] | AccInterface |
3 | 14 | [[#ba635b00]] | AccDeprecated |
3 | 15 | [[#ba635b00]] | SMALL_ICONS |
3 | 16 | [[#ba635b00]] | UPDATE_GETTER_METHOD |
4 | 1 | [[#b76320c0]] | isTransient |
4 | 2 | [[#b76320c0]] | isStrictfp |
4 | 3 | [[#b76320c0]] | isPublic |
4 | 4 | [[#b76320c0]] | isPrivate |
4 | 5 | [[#b76320c0]] | isFinal |
4 | 6 | [[#b76320c0]] | isAnnotation |
4 | 7 | [[#b76320c0]] | isVarargs |
4 | 8 | [[#b76320c0]] | isVolatile |
4 | 9 | [[#b76320c0]] | isSynthetic |
4 | 10 | [[#b76320c0]] | isStrictfp |
4 | 11 | [[#b76320c0]] | isStatic |
4 | 12 | [[#b76320c0]] | isProtected |
4 | 13 | [[#b76320c0]] | isNative |
4 | 14 | [[#b76320c0]] | isFinal |
4 | 15 | [[#b76320c0]] | useLightIcons |
4 | 16 | [[#b76320c0]] | updateSetterMethod |
5 | 1 | [[#b7632060]] | TRANSIENT |
5 | 2 | [[#b7632060]] | STRICTFP |
5 | 3 | [[#b7632060]] | PUBLIC |
5 | 4 | [[#b7632060]] | PRIVATE |
5 | 5 | [[#b7632060]] | FINAL |
5 | 6 | [[#b7632060]] | AccAnnotation |
5 | 7 | [[#b7632060]] | AccVarargs |
5 | 8 | [[#b7632060]] | AccVolatile |
5 | 9 | [[#b7632060]] | AccSynthetic |
5 | 10 | [[#b7632060]] | AccStrictfp |
5 | 11 | [[#b7632060]] | AccStatic |
5 | 12 | [[#b7632060]] | AccProtected |
5 | 13 | [[#b7632060]] | AccNative |
5 | 14 | [[#b7632060]] | AccFinal |
5 | 15 | [[#b7632060]] | LIGHT_TYPE_ICONS |
5 | 16 | [[#b7632060]] | UPDATE_SETTER_METHOD |