Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
34 | 2 | 1 | 0.982 | class_body_declarations[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 34 | 696 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java |
2 | 34 | 547 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java |
| ||||
/* * @see IType#isClass() */ public boolean isClass() throws JavaModelException { IBinaryType info = (IBinaryType) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.CLASS_DECL; } /** * @see IType#isEnum() * @since 3.0 */ public boolean isEnum() throws JavaModelException { IBinaryType info = (IBinaryType) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.ENUM_DECL; } /* * @see IType#isInterface() */ public boolean isInterface() throws JavaModelException { IBinaryType info = (IBinaryType) getElementInfo(); switch (TypeDeclaration.kind(info.getModifiers())) { case TypeDeclaration.INTERFACE_DECL: case TypeDeclaration.ANNOTATION_TYPE_DECL: // annotation is interface too return true; } return false; } /** * @see IType#isAnnotation() * @since 3.0 */ public boolean isAnnotation() throws JavaModelException { IBinaryType info = (IBinaryType) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.ANNOTATION_TYPE_DECL; } |
| ||||
/** * @see IType */ public boolean isClass() throws JavaModelException { SourceTypeElementInfo info = (SourceTypeElementInfo) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.CLASS_DECL; } /** * @see IType#isEnum() * @since 3.0 */ public boolean isEnum() throws JavaModelException { SourceTypeElementInfo info = (SourceTypeElementInfo) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.ENUM_DECL; } /** * @see IType */ public boolean isInterface() throws JavaModelException { SourceTypeElementInfo info = (SourceTypeElementInfo) getElementInfo(); switch (TypeDeclaration.kind(info.getModifiers())) { case TypeDeclaration.INTERFACE_DECL: case TypeDeclaration.ANNOTATION_TYPE_DECL: // annotation is interface too return true; } return false; } /** * @see IType#isAnnotation() * @since 3.0 */ public boolean isAnnotation() throws JavaModelException { SourceTypeElementInfo info = (SourceTypeElementInfo) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.ANNOTATION_TYPE_DECL; } |
| |||
/** * @see IType */ /* * @see IType#isClass() */ public boolean isClass() throws JavaModelException { [[#variable951686e0]] info = ( [[#variable951686e0]]) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.CLASS_DECL; } /** * @see IType#isEnum() * @since 3.0 */ public boolean isEnum() throws JavaModelException { [[#variable951686e0]] info = ( [[#variable951686e0]]) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.ENUM_DECL; } /** * @see IType */ /* * @see IType#isInterface() */ public boolean isInterface() throws JavaModelException { [[#variable951686e0]] info = ( [[#variable951686e0]]) getElementInfo(); switch (TypeDeclaration.kind(info.getModifiers())) { case TypeDeclaration.INTERFACE_DECL: case TypeDeclaration.ANNOTATION_TYPE_DECL: // annotation is interface too return true; } return false; } /** * @see IType#isAnnotation() * @since 3.0 */ public boolean isAnnotation() throws JavaModelException { [[#variable951686e0]] info = ( [[#variable951686e0]]) getElementInfo(); return TypeDeclaration.kind(info.getModifiers()) == TypeDeclaration.ANNOTATION_TYPE_DECL; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#951686e0]] | SourceTypeElementInfo |
1 | 2 | [[#951686e0]] | IBinaryType |