インタフェースjava.lang.constant.ConstantDescの
使用
ConstantDescを使用するパッケージ
パッケージ
説明
Javaプログラミング言語の設計にあたり基本的なクラスを提供します。
クラス・ファイルの解析、生成および変換ライブラリを提供します。
java.lang.classfile
PREVIEWライブラリのクラス・ファイル属性を記述するインタフェースを提供します。java.lang.classfile
PREVIEWライブラリ上に構築された特定のコンポーネント、変換およびツールを提供します。java.lang.classfile
PREVIEWライブラリのクラス・ファイル定数プール・エントリを記述するインタフェースを提供します。java.lang.classfile
PREVIEWライブラリのコード命令を記述するインタフェースを提供します。クラスやメソッド・ハンドルなどのランタイム・エンティティ用に「名目記述子」を表すクラスおよびインタフェース、および定数プール・エントリや
invokedynamic
コール・サイトなどのクラス・ファイル・エンティティ用に「名目記述子」を表すクラスおよびインタフェース。java.lang.invoke
パッケージは、Java Virtual Machineとやりとりするための低レベルのプリミティブを提供します。-
java.langでのConstantDescの使用
ConstantDescを実装しているjava.langのクラス修飾子と型クラス説明final class
Double
クラスは、プリミティブ型double
の値をオブジェクトにラップします。static final class
Enum.EnumDesc<E extends Enum<E>>
enum
定数の「名目記述子」。final class
Float
クラスは、プリミティブ型float
の値をオブジェクトにラップします。final class
Integer
クラスは、プリミティブ型int
の値をオブジェクトにラップします。final class
Long
クラスは、プリミティブ型long
の値をオブジェクトにラップします。final class
String
クラスは文字列を表します。 -
java.lang.classfilePREVIEWでのConstantDescの使用
修飾子と型メソッド説明AnnotationValue.OfConstant.constantValue()
定数を返します。Opcode.constantValue()
定数命令の定数値を返します。それ以外の場合はnullを返します。ConstantDesc型のパラメータを持つjava.lang.classfilePREVIEWのメソッド修飾子と型メソッド説明default CodeBuilderPREVIEW
CodeBuilder.constantInstruction
(OpcodePREVIEW opcode, ConstantDesc value) 定数をオペランド・スタックにプッシュする命令を生成しますdefault CodeBuilderPREVIEW
CodeBuilder.constantInstruction
(ConstantDesc value) 定数をオペランド・スタックにプッシュする命令を生成しますdefault CodeBuilderPREVIEW
CodeBuilder.ldc
(ConstantDesc value) ランタイム定数プールからオペランド・スタックに項目をプッシュする命令を生成します -
java.lang.classfile.attributePREVIEWでのConstantDescの使用
ConstantDesc型のパラメータを持つjava.lang.classfile.attributePREVIEWのメソッド -
java.lang.classfile.componentsPREVIEWでのConstantDescの使用
-
java.lang.classfile.constantpoolPREVIEWでのConstantDescの使用
修飾子と型メソッド説明AnnotationConstantValueEntry.constantValue()
定数値を返します。default ConstantDesc
ClassEntry.constantValue()
default ConstantDesc
ConstantDynamicEntry.constantValue()
ConstantValueEntry.constantValue()
定数値を返します。LoadableConstantEntry.constantValue()
このエントリによって記述された定数を返します。default ConstantDesc
MethodHandleEntry.constantValue()
default ConstantDesc
MethodTypeEntry.constantValue()
ConstantDesc型のパラメータを持つjava.lang.classfile.constantpoolPREVIEWのメソッド修飾子と型メソッド説明ConstantPoolBuilder.annotationConstantValueEntry
(ConstantDesc c) 指定された定数を記述するAnnotationConstantValueEntry
PREVIEWを返します。default ConstantValueEntryPREVIEW
ConstantPoolBuilder.constantValueEntry
(ConstantDesc c) 指定されたInteger、Long、Float、DoubleまたはString定数を記述するConstantValueEntry
PREVIEWを返します。default LoadableConstantEntryPREVIEW
ConstantPoolBuilder.loadableConstantEntry
(ConstantDesc c) 指定された定数を記述するLoadableConstantEntry
PREVIEWを返します。ConstantDesc型の型引数を持つjava.lang.classfile.constantpoolPREVIEWのメソッド・パラメータ修飾子と型メソッド説明default BootstrapMethodEntryPREVIEW
ConstantPoolBuilder.bsmEntry
(DirectMethodHandleDesc methodReference, List<ConstantDesc> arguments) 指定されたブートストラップ・メソッドおよび静的引数を記述するBootstrapMethodEntry
PREVIEWを返します。 -
java.lang.classfile.instructionPREVIEWでのConstantDescの使用
ConstantDesc型の引数を持つ型を返すjava.lang.classfile.instructionPREVIEWのメソッド修飾子と型メソッド説明default List
<ConstantDesc> InvokeDynamicInstruction.bootstrapArgs()
コール・サイトのブートストラップ引数を返します。 -
java.lang.constantでのConstantDescの使用
java.lang.constantのConstantDescのサブインタフェース修飾子と型インタフェース説明interface
interface
interface
interface
ConstantDescを実装しているjava.lang.constantのクラスConstantDescとして宣言されたjava.lang.constantのフィールドConstantDescを返すjava.lang.constantのメソッド修飾子と型メソッド説明DynamicCallSiteDesc.bootstrapArgs()
invokedynamic
のブートストラップ引数を記述するConstantDesc
sを返します。DynamicConstantDesc.bootstrapArgs()
この定数のブートストラップ引数を返します。static <T> ConstantDesc
DynamicConstantDesc.ofCanonical
(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) 定数ブートストラップが既知の単一記述子で、より具体的な記述子タイプ(例: ClassDesc)が使用可能な場合は、動的定数の名目記述子を返し、より具体的な型に変換します。型ConstantDescの引数を持つ型を返すjava.lang.constantのメソッド修飾子と型メソッド説明DynamicConstantDesc.bootstrapArgsList()
不変List
として、この定数のブートストラップ引数を返します。Optional
<? extends ConstantDesc> Constable.describeConstable()
型ConstantDescのパラメータを持つjava.lang.constantのメソッド修飾子と型メソッド説明static DynamicCallSiteDesc
DynamicCallSiteDesc.of
(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs) invokedynamic
callサイトの名目記述子を作成します。static <T> DynamicConstantDesc
<T> DynamicConstantDesc.of
(DirectMethodHandleDesc bootstrapMethod, ConstantDesc... bootstrapArgs) 名前パラメータがConstantDescs.DEFAULT_NAME
で、typeパラメータが常にブートストラップ・メソッドの戻り型と同じである動的定数の名目記述子を返します。static <T> ConstantDesc
DynamicConstantDesc.ofCanonical
(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc[] bootstrapArgs) 定数ブートストラップが既知の単一記述子で、より具体的な記述子タイプ(例: ClassDesc)が使用可能な場合は、動的定数の名目記述子を返し、より具体的な型に変換します。static <T> DynamicConstantDesc
<T> DynamicConstantDesc.ofNamed
(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) 動的定数の名目記述子を返します。DynamicCallSiteDesc.withArgs
(ConstantDesc... bootstrapArgs) ブートストラップ・メソッド、名前および呼出しタイプがこれと同じで、指定されたブートストラップ引数を持つinvokedynamic
コール・サイトの名目記述子を返します。型ConstantDescのパラメータを持つjava.lang.constantのコンストラクタ修飾子コンストラクタ説明protected
DynamicConstantDesc
(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) 動的定数の名目記述子を作成します。 -
java.lang.invokeでのConstantDescの使用
ConstantDescを実装しているjava.lang.invokeのクラス