joeq.Compiler.BytecodeAnalysis
Class Bytecodes.FieldInstruction
java.lang.Object
joeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
joeq.Compiler.BytecodeAnalysis.Bytecodes.CPInstruction
joeq.Compiler.BytecodeAnalysis.Bytecodes.FieldOrMethod
joeq.Compiler.BytecodeAnalysis.Bytecodes.FieldInstruction
- All Implemented Interfaces:
- Serializable, Cloneable, Bytecodes.LoadClass, Bytecodes.TypedInstruction
- Direct Known Subclasses:
- Bytecodes.GETFIELD, Bytecodes.GETSTATIC, Bytecodes.PUTFIELD, Bytecodes.PUTSTATIC
- Enclosing interface:
- Bytecodes
public abstract static class Bytecodes.FieldInstruction
- extends Bytecodes.FieldOrMethod
- implements Bytecodes.TypedInstruction
- See Also:
- Serialized Form
Bytecodes.FieldInstruction
protected Bytecodes.FieldInstruction(short opcode,
jq_Field f)
- Parameters:
opcode
- instruction opcodef
- field
toString
public String toString()
- Overrides:
toString
in class Bytecodes.CPInstruction
- Returns:
- mnemonic for instruction with symbolic references resolved
getField
public jq_Field getField()
getFieldSize
protected int getFieldSize()
- Returns:
- size of field (1 or 2)
getType
public jq_Type getType()
- Description copied from interface:
Bytecodes.LoadClass
- Returns the type associated with this instruction.
LoadClass instances are always typed, but this type
does not always refer to the type of the class or interface
that it possibly forces to load. For example, GETFIELD would
return the type of the field and not the type of the class
where the field is defined.
If no class is forced to be loaded, null is returned.
An example for this is an ANEWARRAY instruction that creates
an int[][].
- Specified by:
getType
in interface Bytecodes.LoadClass
- Specified by:
getType
in interface Bytecodes.TypedInstruction
- Overrides:
getType
in class Bytecodes.CPInstruction
- Returns:
- return type of referenced field
- See Also:
Bytecodes.LoadClass.getLoadClassType()
getFieldType
public jq_Type getFieldType()
- Returns:
- type of field
getFieldName
public String getFieldName()
- Returns:
- name of referenced field.
Copyright © 2001-2008 John Whaley. All Rights Reserved.