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

Method newClass

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

Adds a class reference to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the internal name of the class. @return a new or already existing class reference item.

(final String value)

Source from the content-addressed store, hash-verified

693 */
694
695 Item newClass (final String value) {
696 key2.set(CLASS, value, null, null);
697 Item result = get(key2);
698 if (result == null) {
699 pool.put12(CLASS, newUTF8(value).index);
700 result = new Item(index++, key2);
701 put(result);
702 }
703 return result;
704 }
705
706 /**
707 * Adds a field reference to the constant pool of the class being build. Does

Callers 9

visitMethod · 0.95
visitInnerClassMethod · 0.95
newFieldMethod · 0.95
newMethodMethod · 0.95
newItfMethodMethod · 0.95
initMethod · 0.80
visitTypeInsnMethod · 0.80
visitTryCatchBlockMethod · 0.80

Calls 5

getMethod · 0.95
newUTF8Method · 0.95
putMethod · 0.95
put12Method · 0.80
setMethod · 0.45

Tested by

no test coverage detected