インタフェースjava.lang.constant.ConstantDescの
使用
ConstantDescを使用するパッケージ
パッケージ
説明
Javaプログラミング言語の設計にあたり基本的なクラスを提供します。
クラス・ファイルの解析、生成および変換ライブラリを提供します。
java.lang.classfilePREVIEWライブラリのクラス・ファイル属性を記述するインタフェースを提供します。java.lang.classfilePREVIEWライブラリ上に構築された特定のコンポーネント、変換およびツールを提供します。java.lang.classfilePREVIEWライブラリのクラス・ファイル定数プール・エントリを記述するインタフェースを提供します。java.lang.classfilePREVIEWライブラリのコード命令を記述するインタフェースを提供します。クラスやメソッド・ハンドルなどのランタイム・エンティティ用に「名目記述子」を表すクラスおよびインタフェース、および定数プール・エントリや
invokedynamicコール・サイトなどのクラス・ファイル・エンティティ用に「名目記述子」を表すクラスおよびインタフェース。java.lang.invokeパッケージは、Java Virtual Machineとやりとりするための低レベルのプリミティブを提供します。-
java.langでのConstantDescの使用
ConstantDescを実装しているjava.langのクラス修飾子と型クラス説明final classDoubleクラスは、プリミティブ型doubleの値をオブジェクトにラップします。static final classEnum.EnumDesc<E extends Enum<E>>enum定数の「名目記述子」。final classFloatクラスは、プリミティブ型floatの値をオブジェクトにラップします。final classIntegerクラスは、プリミティブ型intの値をオブジェクトにラップします。final classLongクラスは、プリミティブ型longの値をオブジェクトにラップします。final classStringクラスは文字列を表します。 -
java.lang.classfilePREVIEWでのConstantDescの使用
修飾子と型メソッド説明AnnotationValue.OfConstant.constantValue()定数を返します。Opcode.constantValue()定数命令の定数値を返します。それ以外の場合はnullを返します。ConstantDesc型のパラメータを持つjava.lang.classfilePREVIEWのメソッド修飾子と型メソッド説明default CodeBuilderPREVIEWCodeBuilder.constantInstruction(OpcodePREVIEW opcode, ConstantDesc value) 定数をオペランド・スタックにプッシュする命令を生成しますdefault CodeBuilderPREVIEWCodeBuilder.constantInstruction(ConstantDesc value) 定数をオペランド・スタックにプッシュする命令を生成しますdefault CodeBuilderPREVIEWCodeBuilder.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 ConstantDescClassEntry.constantValue()default ConstantDescConstantDynamicEntry.constantValue()ConstantValueEntry.constantValue()定数値を返します。LoadableConstantEntry.constantValue()このエントリによって記述された定数を返します。default ConstantDescMethodHandleEntry.constantValue()default ConstantDescMethodTypeEntry.constantValue()ConstantDesc型のパラメータを持つjava.lang.classfile.constantpoolPREVIEWのメソッド修飾子と型メソッド説明ConstantPoolBuilder.annotationConstantValueEntry(ConstantDesc c) 指定された定数を記述するAnnotationConstantValueEntryPREVIEWを返します。default ConstantValueEntryPREVIEWConstantPoolBuilder.constantValueEntry(ConstantDesc c) 指定されたInteger、Long、Float、DoubleまたはString定数を記述するConstantValueEntryPREVIEWを返します。default LoadableConstantEntryPREVIEWConstantPoolBuilder.loadableConstantEntry(ConstantDesc c) 指定された定数を記述するLoadableConstantEntryPREVIEWを返します。ConstantDesc型の型引数を持つjava.lang.classfile.constantpoolPREVIEWのメソッド・パラメータ修飾子と型メソッド説明default BootstrapMethodEntryPREVIEWConstantPoolBuilder.bsmEntry(DirectMethodHandleDesc methodReference, List<ConstantDesc> arguments) 指定されたブートストラップ・メソッドおよび静的引数を記述するBootstrapMethodEntryPREVIEWを返します。 -
java.lang.classfile.instructionPREVIEWでのConstantDescの使用
ConstantDesc型の引数を持つ型を返すjava.lang.classfile.instructionPREVIEWのメソッド修飾子と型メソッド説明default List<ConstantDesc> InvokeDynamicInstruction.bootstrapArgs()コール・サイトのブートストラップ引数を返します。 -
java.lang.constantでのConstantDescの使用
java.lang.constantのConstantDescのサブインタフェース修飾子と型インタフェース説明interfaceinterfaceinterfaceinterfaceConstantDescを実装しているjava.lang.constantのクラスConstantDescとして宣言されたjava.lang.constantのフィールドConstantDescを返すjava.lang.constantのメソッド修飾子と型メソッド説明DynamicCallSiteDesc.bootstrapArgs()invokedynamicのブートストラップ引数を記述するConstantDescsを返します。DynamicConstantDesc.bootstrapArgs()この定数のブートストラップ引数を返します。static <T> ConstantDescDynamicConstantDesc.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 DynamicCallSiteDescDynamicCallSiteDesc.of(DirectMethodHandleDesc bootstrapMethod, String invocationName, MethodTypeDesc invocationType, ConstantDesc... bootstrapArgs) invokedynamiccallサイトの名目記述子を作成します。static <T> DynamicConstantDesc<T> DynamicConstantDesc.of(DirectMethodHandleDesc bootstrapMethod, ConstantDesc... bootstrapArgs) 名前パラメータがConstantDescs.DEFAULT_NAMEで、typeパラメータが常にブートストラップ・メソッドの戻り型と同じである動的定数の名目記述子を返します。static <T> ConstantDescDynamicConstantDesc.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のコンストラクタ修飾子コンストラクタ説明protectedDynamicConstantDesc(DirectMethodHandleDesc bootstrapMethod, String constantName, ClassDesc constantType, ConstantDesc... bootstrapArgs) 動的定数の名目記述子を作成します。 -
java.lang.invokeでのConstantDescの使用
ConstantDescを実装しているjava.lang.invokeのクラス