예제 #1
0
 /** {@inheritDoc} */
 public String getConciseIdentity() {
   if (parent == null) {
     return "class_data_item @0x" + Integer.toHexString(getOffset());
   }
   return "class_data_item @0x"
       + Integer.toHexString(getOffset())
       + " ("
       + parent.getClassType()
       + ")";
 }
예제 #2
0
 /** {@inheritDoc} */
 public int compareTo(ClassDataItem other) {
   if (parent == null) {
     if (other.parent == null) {
       return 0;
     }
     return -1;
   }
   if (other.parent == null) {
     return 1;
   }
   return parent.compareTo(other.parent);
 }