Package org.apache.bcel.generic
Class GETFIELD
- All Implemented Interfaces:
Cloneable,ExceptionThrower,IndexedInstruction,LoadClass,StackConsumer,StackProducer,TypedInstruction
public class GETFIELD
extends FieldInstruction
implements ExceptionThrower, StackConsumer, StackProducer
GETFIELD - Fetch field from object
Stack: ..., objectref -> ..., valueOR
Stack: ..., objectref -> ..., value.word1, value.word2
-
Field Summary
Fields inherited from class org.apache.bcel.generic.CPInstruction
indexFields inherited from class org.apache.bcel.generic.Instruction
length, opcode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCall corresponding visitor method(s).Class<?>[]intThis method also gives right results for instructions whose effect on the stack depends on the constant pool entry they reference.Methods inherited from class org.apache.bcel.generic.FieldInstruction
getFieldName, getFieldSize, getFieldType, getType, toStringMethods inherited from class org.apache.bcel.generic.FieldOrMethod
getClassName, getClassType, getLoadClassType, getName, getReferenceType, getSignatureMethods inherited from class org.apache.bcel.generic.CPInstruction
dump, getIndex, initFromFile, setIndex, toStringMethods inherited from class org.apache.bcel.generic.Instruction
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, readInstruction, setComparator, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.bcel.generic.StackConsumer
consumeStack
-
Constructor Details
-
GETFIELD
-
-
Method Details
-
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
-
getExceptions
- Specified by:
getExceptionsin interfaceExceptionThrower
-
produceStack
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:
produceStackin interfaceStackProducer- Overrides:
produceStackin classInstruction- Returns:
- Number of words produced onto stack by this instruction, or Constants.UNPREDICTABLE, if this can not be computed statically
-