- すべてのスーパー・インタフェース:
ClassFileElementPREVIEW
,CodeElementPREVIEW
,InstructionPREVIEW
public sealed interface FieldInstruction extends InstructionPREVIEW
FieldInstruction
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Code
属性のcode
配列内のフィールド・アクセス命令をモデル化します。 対応するopcodeのkind
は、Opcode.Kind.FIELD_ACCESS
PREVIEWになります。 CodeModel
PREVIEWの要素をトラバースするときに、CodeElement
PREVIEWとして提供されます。 - 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明field()
この命令によって記述されたFieldRefEntry
PREVIEW定数を返します。name()
フィールドの名前を返します。static FieldInstructionPREVIEW
of
(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) フィールド・アクセス指示を返します。static FieldInstructionPREVIEW
フィールド・アクセス指示を返します。static FieldInstructionPREVIEW
of
(OpcodePREVIEW op, FieldRefEntryPREVIEW field) フィールド・アクセス指示を返します。default ClassEntryPREVIEW
owner()
フィールドを保持するクラスを返します。type()
フィールドのフィールド記述子を返します。default ClassDesc
フィールドの型のシンボリック記述子を返します。インタフェースjava.lang.classfile.InstructionPREVIEWで宣言されたメソッド
opcode, sizeInBytes
-
メソッドの詳細
-
field
FieldRefEntryPREVIEW field()この命令によって記述されたFieldRefEntry
PREVIEW定数を返します。- 戻り値:
- この命令によって記述される
FieldRefEntry
PREVIEW定数
-
owner
-
name
-
type
-
typeSymbol
-
of
static FieldInstructionPREVIEW of(OpcodePREVIEW op, FieldRefEntryPREVIEW field) フィールド・アクセス指示を返します。- パラメータ:
op
- 特定のタイプのフィールド・アクセス指示のopcode。Opcode.Kind.FIELD_ACCESS
PREVIEW型である必要がありますfield
- フィールドを記述する定数プール・エントリ- 戻り値:
- フィールド・アクセス指示
-
of
static FieldInstructionPREVIEW of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type) フィールド・アクセス指示を返します。- パラメータ:
op
- 特定のタイプのフィールド・アクセス指示のopcode。Opcode.Kind.FIELD_ACCESS
PREVIEW型である必要がありますowner
- フィールドを保持するクラスname
- フィールドの名前type
- フィールド記述子- 戻り値:
- フィールド・アクセス指示
-
of
static FieldInstructionPREVIEW of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType) フィールド・アクセス指示を返します。- パラメータ:
op
- 特定のタイプのフィールド・アクセス指示のopcode。Opcode.Kind.FIELD_ACCESS
PREVIEW型である必要がありますowner
- フィールドを保持するクラスnameAndType
- フィールドの名前とフィールド記述子- 戻り値:
- フィールド・アクセス指示
-
FieldInstruction
を使用できます。