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

Method newUTF8

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

Adds an UTF string to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the String value. @return a new or already existing UTF8 item.

(final String value)

Source from the content-addressed store, hash-verified

674 */
675
676 Item newUTF8 (final String value) {
677 key.set(UTF8, value, null, null);
678 Item result = get(key);
679 if (result == null) {
680 pool.put1(UTF8).putUTF(value);
681 result = new Item(index++, key);
682 put(result);
683 }
684 return result;
685 }
686
687 /**
688 * Adds a class reference to the constant pool of the class being build. Does

Callers 12

visitMethod · 0.95
visitInnerClassMethod · 0.95
visitFieldMethod · 0.95
toByteArrayMethod · 0.95
newClassMethod · 0.95
newStringMethod · 0.95
newNameTypeMethod · 0.95
initMethod · 0.80
visitLocalVariableMethod · 0.80
visitLineNumberMethod · 0.80
getSizeMethod · 0.80
putMethod · 0.80

Calls 5

getMethod · 0.95
putMethod · 0.95
putUTFMethod · 0.80
put1Method · 0.80
setMethod · 0.45

Tested by

no test coverage detected