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

Method addConstantDynamic

src/jvm/clojure/asm/SymbolTable.java:892–900  ·  view source on GitHub ↗

Adds a CONSTANT_Dynamic_info to the constant pool of this symbol table. Also adds the related bootstrap method to the BootstrapMethods of this symbol table. Does nothing if the constant pool already contains a similar item. @param name a method name. @param descriptor a field descriptor. @param boo

(
      final String name,
      final String descriptor,
      final Handle bootstrapMethodHandle,
      final Object... bootstrapMethodArguments)

Source from the content-addressed store, hash-verified

890 * @return a new or already existing Symbol with the given value.
891 */
892 Symbol addConstantDynamic(
893 final String name,
894 final String descriptor,
895 final Handle bootstrapMethodHandle,
896 final Object... bootstrapMethodArguments) {
897 Symbol bootstrapMethod = addBootstrapMethod(bootstrapMethodHandle, bootstrapMethodArguments);
898 return addConstantDynamicOrInvokeDynamicReference(
899 Symbol.CONSTANT_DYNAMIC_TAG, name, descriptor, bootstrapMethod.index);
900 }
901
902 /**
903 * Adds a CONSTANT_InvokeDynamic_info to the constant pool of this symbol table. Also adds the

Callers 2

addConstantMethod · 0.95
newConstantDynamicMethod · 0.80

Tested by

no test coverage detected