Modifier and Type | Field and Description |
---|---|
private final Handle | bootstrapMethod
The bootstrap method to use to compute the constant value at runtime. |
private final Object[] | bootstrapMethodArguments
The arguments to pass to the bootstrap method, in order to compute the constant value at runtime. |
private final String | descriptor
The constant type (must be a field descriptor). |
private final String | name
The constant name (can be arbitrary). |
Access | Constructor and Description |
---|---|
public | ConstantDynamic(final String
the constant name (can be arbitrary). name, final String the constant type (must be a field descriptor). descriptor, final Handle the bootstrap method to use to compute the constant value at runtime. bootstrapMethod, final Object... the arguments to pass to the bootstrap method, in order to
compute the constant value at runtime. bootstrapMethodArguments)Constructs a new |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(final Object
the reference object with which to compare. object)Overrides java. |
public Handle | Returns: the bootstrap method used to compute the value of this constant.Returns the bootstrap method used to compute the value of this constant. |
public Object | Returns: the argument passed to the bootstrap method, with the given index.an argument index, between 0 and index)getBootstrapMethodArgumentCount()
(exclusive).Returns an argument passed to the bootstrap method, in order to compute the value of this constant. |
public int | Returns: the number of arguments passed to the bootstrap method, in order to compute the value of this constant.Returns the number of arguments passed to the bootstrap method, in order to compute the value of this constant. |
pack-priv Object[] | 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. |
public String | Returns: the type of this constant, as a field descriptor.Returns the type of this constant. |
public String | |
public int | Returns: the size of this constant, i.e., 2 forlong and double , 1 otherwise.Returns the size of this constant. |
public int | |
public String |
bootstrapMethod | back to summary |
---|---|
private final Handle bootstrapMethod The bootstrap method to use to compute the constant value at runtime. |
bootstrapMethodArguments | back to summary |
---|---|
private final Object[] bootstrapMethodArguments The arguments to pass to the bootstrap method, in order to compute the constant value at runtime. |
descriptor | back to summary |
---|---|
private final String descriptor The constant type (must be a field descriptor). |
name | back to summary |
---|---|
private final String name The constant name (can be arbitrary). |
ConstantDynamic | back to summary |
---|---|
public ConstantDynamic(final String name, final String descriptor, final Handle bootstrapMethod, final Object... bootstrapMethodArguments) Constructs a new
|
equals | back to summary |
---|---|
public boolean equals(final Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
getBootstrapMethod | back to summary |
---|---|
public Handle getBootstrapMethod() Returns the bootstrap method used to compute the value of this constant.
|
getBootstrapMethodArgument | back to summary |
---|---|
public Object getBootstrapMethodArgument(final int index) Returns an argument passed to the bootstrap method, in order to compute the value of this constant.
|
getBootstrapMethodArgumentCount | back to summary |
---|---|
public int getBootstrapMethodArgumentCount() Returns the number of arguments passed to the bootstrap method, in order to compute the value of this constant.
|
getBootstrapMethodArgumentsUnsafe | back to summary |
---|---|
pack-priv Object[] getBootstrapMethodArgumentsUnsafe() Returns the arguments to pass to the bootstrap method, in order to compute the value of this constant. Warning this array must not be modified, and must not be returned to the user.
|
getDescriptor | back to summary |
---|---|
public String getDescriptor() Returns the type of this constant.
|
getName | back to summary |
---|---|
public String getName() Returns the name of this constant.
|
getSize | back to summary |
---|---|
public int getSize() Returns the size of this constant.
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |