|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mvel2.asm.ConstantDynamic
public final class ConstantDynamic
A constant whose value is computed at runtime, with a bootstrap method.
| Constructor Summary | |
|---|---|
ConstantDynamic(String name,
String descriptor,
Handle bootstrapMethod,
Object... bootstrapMethodArguments)
Constructs a new ConstantDynamic. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
|
Handle |
getBootstrapMethod()
Returns the bootstrap method used to compute the value of this constant. |
Object |
getBootstrapMethodArgument(int index)
Returns an argument passed to the bootstrap method, in order to compute the value of this constant. |
int |
getBootstrapMethodArgumentCount()
Returns the number of arguments passed to the bootstrap method, in order to compute the value of this constant. |
String |
getDescriptor()
Returns the type of this constant. |
String |
getName()
Returns the name of this constant. |
int |
getSize()
Returns the size of this constant. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantDynamic(String name,
String descriptor,
Handle bootstrapMethod,
Object... bootstrapMethodArguments)
ConstantDynamic.
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 |
|---|
public String getName()
public String getDescriptor()
public Handle getBootstrapMethod()
public int getBootstrapMethodArgumentCount()
public Object getBootstrapMethodArgument(int index)
index - an argument index, between 0 and getBootstrapMethodArgumentCount()
(exclusive).
public int getSize()
long and double, 1 otherwise.public boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||