de.fub.bytecode.generic
Class FieldInstruction
java.lang.Object
|
+--de.fub.bytecode.generic.Instruction
|
+--de.fub.bytecode.generic.CPInstruction
|
+--de.fub.bytecode.generic.FieldOrMethod
|
+--de.fub.bytecode.generic.FieldInstruction
- Direct Known Subclasses:
- GETFIELD, GETSTATIC, PUTFIELD, PUTSTATIC
- 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
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
FieldInstruction
protected FieldInstruction(short tag,
int index)
- Parameters:
index
- to constant pool
toString
public java.lang.String toString(ConstantPool cp)
- Returns:
- mnemonic for instruction with symbolic references resolved
- Overrides:
- toString in class CPInstruction
getFieldSize
protected int getFieldSize(ConstantPoolGen cpg)
- Returns:
- size of field (1 or 2)
getType
public Type getType(ConstantPoolGen cpg)
- Returns:
- return type of referenced field
- Overrides:
- getType in class CPInstruction
getFieldType
public Type getFieldType(ConstantPoolGen cpg)
- Returns:
- type of field
getFieldName
public java.lang.String getFieldName(ConstantPoolGen cpg)
- Returns:
- name of referenced field.