Package org.objectweb.asm
Class ConstantDynamic
- java.lang.Object
-
- org.objectweb.asm.ConstantDynamic
-
@Deprecated public final class ConstantDynamic extends java.lang.ObjectDeprecated.This API is experimental.A constant whose value is computed at runtime, with a bootstrap method.- Author:
- Remi Forax
-
-
Constructor Summary
Constructors Constructor Description ConstantDynamic(java.lang.String name, java.lang.String descriptor, Handle bootstrapMethod, java.lang.Object... bootstrapMethodArguments)Deprecated.Constructs a newConstantDynamic.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Deprecated.HandlegetBootstrapMethod()Deprecated.Returns the bootstrap method used to compute the value of this constant.java.lang.Object[]getBootstrapMethodArguments()Deprecated.Returns the arguments to pass to the bootstrap method, in order to compute the value of this constant.java.lang.StringgetDescriptor()Deprecated.Returns the type of this constant.java.lang.StringgetName()Deprecated.Returns the name of this constant.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
ConstantDynamic
public ConstantDynamic(java.lang.String name, java.lang.String descriptor, Handle bootstrapMethod, java.lang.Object... bootstrapMethodArguments)Deprecated.Constructs a newConstantDynamic.- Parameters:
name- the constant name (can be arbitrary).descriptor- the constant type (must be a field descriptor).bootstrapMethod- the bootstrap method to use to compute the constant value at runtime.bootstrapMethodArguments- the arguments to pass to the bootstrap method, in order to compute the constant value at runtime.
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Returns the name of this constant.- Returns:
- the name of this constant.
-
getDescriptor
public java.lang.String getDescriptor()
Deprecated.Returns the type of this constant.- Returns:
- the type of this constant, as a field descriptor.
-
getBootstrapMethod
public Handle getBootstrapMethod()
Deprecated.Returns the bootstrap method used to compute the value of this constant.- Returns:
- the bootstrap method used to compute the value of this constant.
-
getBootstrapMethodArguments
public java.lang.Object[] getBootstrapMethodArguments()
Deprecated.Returns the arguments to pass to the bootstrap method, in order to compute the value of this constant.- Returns:
- the arguments to pass to the bootstrap method, in order to compute the value of this constant.
-
equals
public boolean equals(java.lang.Object object)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-