Class ConstantDynamic

java.lang.Object
org.jfuncmachine.compiler.classgen.ConstantDynamic

public class ConstantDynamic extends Object
Defines a dynamic constant, that allows constant values to be determined at runtime by a bootstrap method.
  • Field Details

    • name

      public final String name
      The name of the constant
    • descriptor

      public final String descriptor
      A descriptor of the constant's type
    • bootstrapMethod

      public final Handle bootstrapMethod
      A handle describing the bootstrap method to be invoked
    • bootstrapMethodArguments

      public final Object[] bootstrapMethodArguments
      The arguments to be passed to the bootstrap method.
  • Constructor Details

    • ConstantDynamic

      public ConstantDynamic(String name, String descriptor, Handle bootstrapMethod, Object... bootstrapMethodArguments)
      Create a new ConstantDynamic
      Parameters:
      name - The name of the constant
      descriptor - A descriptor of the constant's type
      bootstrapMethod - A handle describing the bootstrap method to be invoked
      bootstrapMethodArguments - The arguments to be passed to the bootstrap method.