CloneSet969


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
34210.982class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
134696
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java
234547
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java
Clone Instance
1
Line Count
34
Source Line
696
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.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;
}


Clone Instance
2
Line Count
34
Source Line
547
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java

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


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#951686e0]]
SourceTypeElementInfo 
12[[#951686e0]]
IBinaryType