public final class ConstantDynamic extends ObjectSE
コンストラクターと説明 |
---|
ConstantDynamic(StringSE name, StringSE descriptor, Handle bootstrapMethod, ObjectSE... bootstrapMethodArguments) 新しい ConstantDynamic を構築します。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE object) |
Handle | getBootstrapMethod() この定数の値を計算するために使用されるブートストラップメソッドを返します。 |
ObjectSE | getBootstrapMethodArgument(int index) この定数の値を計算するために、ブートストラップメソッドに渡された引数を返します。 |
int | getBootstrapMethodArgumentCount() この定数の値を計算するために、ブートストラップメソッドに渡された引数の数を返します。 |
StringSE | getDescriptor() この定数の型を返します。 |
StringSE | getName() この定数の名前を返します。 |
int | getSize() この定数のサイズを返します。 |
int | hashCode() |
StringSE | toString() |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public ConstantDynamic(StringSE name, StringSE descriptor, Handle bootstrapMethod, ObjectSE... bootstrapMethodArguments)
ConstantDynamic
を構築します。name
- 定数名(任意にすることができます)。descriptor
- 定数型(フィールド記述子である必要があります)。bootstrapMethod
- 実行時に定数値を計算するために使用するブートストラップメソッド。bootstrapMethodArguments
- 実行時に定数値を計算するために、ブートストラップメソッドに渡す引数。public StringSE getName()
public StringSE getDescriptor()
public Handle getBootstrapMethod()
public int getBootstrapMethodArgumentCount()
public ObjectSE getBootstrapMethodArgument(int index)
index
- 0 から getBootstrapMethodArgumentCount()
(排他的)までの引数インデックス。public int getSize()
long
と double
の場合は 2、それ以外の場合は 1 です。public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE