Class BootstrapMethodsAttribute.BootstrapMethod

java.lang.Object
javassist.bytecode.BootstrapMethodsAttribute.BootstrapMethod
Enclosing class:
BootstrapMethodsAttribute

public static class BootstrapMethodsAttribute.BootstrapMethod extends Object
An element of bootstrap_methods.
  • Field Details

    • methodRef

      public int methodRef
      bootstrap_method_ref. The value at this index must be a CONSTANT_MethodHandle_info.
    • arguments

      public int[] arguments
      bootstrap_arguments.
  • Constructor Details

    • BootstrapMethod

      public BootstrapMethod(int method, int[] args)
      Constructs an element of bootstrap_methods.
      Parameters:
      method - bootstrap_method_ref.
      args - bootstrap_arguments.
  • Method Details

    • copy

      protected BootstrapMethodsAttribute.BootstrapMethod copy(ConstPool srcCp, ConstPool destCp, Map<String,String> classnames)
      Makes a copy. Class names are replaced according to the * given Map object.
      Parameters:
      srcCp - the constant pool table from the source
      destCp - the constant pool table used bt new copy
      classnames - pairs of replaced and substituted class names.
      Returns:
      new BootstrapMethod