|
|
@ -42,11 +42,17 @@ public class Reference { |
|
|
|
* The member type. |
|
|
|
* The member type. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
String memberType; |
|
|
|
String memberType; |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* The cached hash code |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
int cachedHashCode; |
|
|
|
|
|
|
|
|
|
|
|
public Reference(String className, String name, String type) { |
|
|
|
public Reference(String className, String name, String type) { |
|
|
|
this.className = className; |
|
|
|
this.className = className.intern(); |
|
|
|
this.memberName = name; |
|
|
|
this.memberName = name.intern(); |
|
|
|
this.memberType = type; |
|
|
|
this.memberType = type.intern(); |
|
|
|
|
|
|
|
cachedHashCode = |
|
|
|
|
|
|
|
className.hashCode() ^ name.hashCode() ^ type.hashCode(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getClazz() { |
|
|
|
public String getClazz() { |
|
|
@ -86,4 +92,8 @@ public class Reference { |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int hashCode() { |
|
|
|
|
|
|
|
return cachedHashCode; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|