Top Description Constructors Methods
org.apache.bcel.generic

public Class GETSTATIC

extends FieldInstruction
implements PushInstruction, ExceptionThrower
Class Inheritance
All Implemented Interfaces
org.apache.bcel.generic.ExceptionThrower, org.apache.bcel.generic.PushInstruction, org.apache.bcel.generic.StackProducer
Imports
org.apache.bcel.Const, .ExceptionConst

GETSTATIC - Fetch static field from class
Stack: ..., -> ..., value
OR
Stack: ..., -> ..., value.word1, value.word2

Constructor Summary

AccessConstructor and Description
pack-priv
GETSTATIC()

Empty constructor needed for Instruction.readInstruction.

public
GETSTATIC(final int index)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract org.apache.bcel.generic.Instruction.accept.

Call corresponding visitor method(s).
public Class<?>[]
public int
produceStack(final ConstantPoolGen cpg)

Overrides org.apache.bcel.generic.Instruction.produceStack.

Implements org.apache.bcel.generic.StackProducer.produceStack.

This method also gives right results for instructions whose effect on the stack depends on the constant pool entry they reference.
Inherited from org.apache.bcel.generic.FieldInstruction:
getFieldNamegetFieldSizegetFieldTypegetTypetoString

Constructor Detail

GETSTATICback to summary
pack-priv GETSTATIC()

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

GETSTATICback to summary
public GETSTATIC(final int index)

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract org.apache.bcel.generic.Instruction.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.

Parameters
v:Visitor

Visitor object

Annotations
@Override
getExceptionsback to summary
public Class<?>[] getExceptions()

Implements org.apache.bcel.generic.ExceptionThrower.getExceptions.

Annotations
@Override
produceStackback to summary
public int produceStack(final ConstantPoolGen cpg)

Overrides org.apache.bcel.generic.Instruction.produceStack.

Implements org.apache.bcel.generic.StackProducer.produceStack.

Doc from org.apache.bcel.generic.Instruction.produceStack.

This method also gives right results for instructions whose effect on the stack depends on the constant pool entry they reference.

Returns:int

Doc from org.apache.bcel.generic.StackProducer.produceStack.

how many words are produced on stack

Annotations
@Override