All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.FieldInstruction

java.lang.Object
   |
   +----de.fub.bytecode.generic.Instruction
           |
           +----de.fub.bytecode.generic.CPInstruction
                   |
                   +----de.fub.bytecode.generic.FieldOrMethod
                           |
                           +----de.fub.bytecode.generic.FieldInstruction

public abstract class FieldInstruction
extends FieldOrMethod
Super class for the GET/PUTxxx family of instructions.

Version:
$Id: FieldInstruction.java,v 1.6 1999/07/09 15:55:08 dahm Exp $
Author:
M. Dahm

Constructor Index

 o FieldInstruction(short, int)

Method Index

 o getFieldName(ConstantPoolGen)
 o getFieldSize(ConstantPoolGen)
 o getFieldType(ConstantPoolGen)
 o getType(ConstantPoolGen)
 o toString(ConstantPool)

Constructors

 o FieldInstruction
 protected FieldInstruction(short tag,
                            int index)
Parameters:
index - to constant pool

Methods

 o toString
 public String toString(ConstantPool cp)
Returns:
mnemonic for instruction with symbolic references resolved
Overrides:
toString in class CPInstruction
 o getFieldSize
 protected int getFieldSize(ConstantPoolGen cpg)
Returns:
size of field (1 or 2)
 o getType
 public Type getType(ConstantPoolGen cpg)
Returns:
return type of referenced field
Overrides:
getType in class CPInstruction
 o getFieldType
 public Type getFieldType(ConstantPoolGen cpg)
Returns:
type of field
 o getFieldName
 public String getFieldName(ConstantPoolGen cpg)
Returns:
name of referenced field.

All Packages  Class Hierarchy  This Package  Previous  Next  Index