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

Method addConstantInvokeDynamic

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

Adds a CONSTANT_InvokeDynamic_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 method descriptor. @pa

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

Source from the content-addressed store, hash-verified

911 * @return a new or already existing Symbol with the given value.
912 */
913 Symbol addConstantInvokeDynamic(
914 final String name,
915 final String descriptor,
916 final Handle bootstrapMethodHandle,
917 final Object... bootstrapMethodArguments) {
918 Symbol bootstrapMethod = addBootstrapMethod(bootstrapMethodHandle, bootstrapMethodArguments);
919 return addConstantDynamicOrInvokeDynamicReference(
920 Symbol.CONSTANT_INVOKE_DYNAMIC_TAG, name, descriptor, bootstrapMethod.index);
921 }
922
923 /**
924 * Adds a CONSTANT_Dynamic or a CONSTANT_InvokeDynamic_info to the constant pool of this symbol

Callers 2

newInvokeDynamicMethod · 0.80

Tested by

no test coverage detected