MCPcopy Index your code
hub / github.com/clojure/clojure / newConst

Method newConst

src/jvm/clojure/asm/ClassWriter.java:731–733  ·  view source on GitHub ↗

Adds a number or string constant to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. This method is intended for Attribute sub classes, and is normally not needed by class generators or adapters. @param value the value of

(final Object value)

Source from the content-addressed store, hash-verified

729 * @return the index of a new or already existing constant item with the given value.
730 */
731 public int newConst(final Object value) {
732 return symbolTable.addConstant(value).index;
733 }
734
735 /**
736 * Adds an UTF8 string to the constant pool of the class being build. Does nothing if the constant

Callers

nothing calls this directly

Calls 1

addConstantMethod · 0.80

Tested by

no test coverage detected