getstatic

Get static field from class

Bytecode

Type Description
u1 getstatic opcode = 0xB2 (178)
u2 index

Stack ..., =>..., value OR  ..., => ..., value.word1, value.word2

Description

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.