Class PUTSTATIC
- All Implemented Interfaces:
Serializable, Cloneable, ExceptionThrower, IndexedInstruction, LoadClass, PopInstruction, StackConsumer, TypedInstruction
PUTSTATIC - Put static field in class
Stack: ..., value -> ...OR
Stack: ..., value.word1, value.word2 -> ...
- See Also:
-
Field Summary
Fields inherited from class CPInstruction
indexFields inherited from class Instruction
length, opcode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCall corresponding visitor method(s).intThis method also gives right results for instructions whose effect on the stack depends on the constant pool entry they reference.Class<?>[]Methods inherited from class FieldInstruction
getFieldName, getFieldSize, getFieldType, getType, toStringMethods inherited from class FieldOrMethod
getClassName, getClassType, getLoadClassType, getName, getReferenceType, getSignatureMethods inherited from class CPInstruction
dump, getIndex, initFromFile, setIndex, toStringMethods inherited from class Instruction
copy, equals, getComparator, getLength, getName, getOpcode, hashCode, produceStack, readInstruction, setComparator, toString
-
Constructor Details
-
PUTSTATIC
public PUTSTATIC(int index)
-
-
Method Details
-
consumeStack
Description copied from class:InstructionThis method also gives right results for instructions whose effect on the stack depends on the constant pool entry they reference.- Specified by:
consumeStackin interfaceStackConsumer- Overrides:
consumeStackin classInstruction- Returns:
- Number of words consumed from stack by this instruction, or Constants.UNPREDICTABLE, if this can not be computed statically
-
getExceptions
- Specified by:
getExceptionsin interfaceExceptionThrower
-
accept
Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.- Specified by:
acceptin classInstruction- Parameters:
v- Visitor object
-