MCPcopy Create free account
hub / github.com/beanshell/beanshell / get

Method get

src/bsh/org/objectweb/asm/ClassWriter.java:907–917  ·  view source on GitHub ↗

Returns the constant pool's hash table item which is equal to the given item. @param key a constant pool item. @return the constant pool's hash table item which is equal to the given item, or null if there is no such item.

(final Item key)

Source from the content-addressed store, hash-verified

905 */
906
907 private Item get (final Item key) {
908 Item tab[] = table;
909 int hashCode = key.hashCode;
910 int index = (hashCode & 0x7FFFFFFF) % tab.length;
911 for (Item i = tab[index]; i != null; i = i.next) {
912 if (i.hashCode == hashCode && key.isEqualTo(i)) {
913 return i;
914 }
915 }
916 return null;
917 }
918
919 /**
920 * Puts the given item in the constant pool's hash table. The hash table

Callers 11

newUTF8Method · 0.95
newClassMethod · 0.95
newFieldMethod · 0.95
newMethodMethod · 0.95
newItfMethodMethod · 0.95
newIntegerMethod · 0.95
newFloatMethod · 0.95
newLongMethod · 0.95
newDoubleMethod · 0.95
newStringMethod · 0.95
newNameTypeMethod · 0.95

Calls 1

isEqualToMethod · 0.80

Tested by

no test coverage detected