Class ConstantDynamic
java.lang.Object
org.jfuncmachine.compiler.classgen.ConstantDynamic
Defines a dynamic constant, that allows constant values to be determined at runtime by
a bootstrap method.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstantDynamic(String name, String descriptor, Handle bootstrapMethod, Object... bootstrapMethodArguments) Create a new ConstantDynamic -
Method Summary
-
Field Details
-
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.
-
-
Constructor Details
-
ConstantDynamic
public ConstantDynamic(String name, String descriptor, Handle bootstrapMethod, Object... bootstrapMethodArguments) Create a new ConstantDynamic- Parameters:
name- The name of the constantdescriptor- A descriptor of the constant's typebootstrapMethod- A handle describing the bootstrap method to be invokedbootstrapMethodArguments- The arguments to be passed to the bootstrap method.
-