Get static
field from class
Bytecode
Type | Description |
u1 | getstatic2_quick opcode = 0xD4 (212) |
u2 | index |
Stack ..., => ..., value.word1, value.word2
The unsigned index is used to access to field entry, a
reference to a class name and a field name. If the field is protected
, then
it must be either a member of the current class or a member of a superclass of the current
class.
The item is resolved, determining both the class field and its width. The value of the class field is fetched and pushed onto the operand stack.
Notes
The opcode of this instruction was originally getstatic, operating on a class
field determined dynamically to be two words wide. The operands of the getstatic
instruction are not modified. There is no equivalent to the getfield2_quick
instruction, storing a class offset as an instruction operand, for two-word static
fields.