joeq.Compiler.BytecodeAnalysis
Class Bytecodes.FieldOrMethod

java.lang.Object
  extended by joeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
      extended by joeq.Compiler.BytecodeAnalysis.Bytecodes.CPInstruction
          extended by joeq.Compiler.BytecodeAnalysis.Bytecodes.FieldOrMethod
All Implemented Interfaces:
Serializable, Cloneable, Bytecodes.LoadClass, Bytecodes.TypedInstruction
Direct Known Subclasses:
Bytecodes.FieldInstruction, Bytecodes.InvokeInstruction
Enclosing interface:
Bytecodes

public abstract static class Bytecodes.FieldOrMethod
extends Bytecodes.CPInstruction
implements Bytecodes.LoadClass

See Also:
Serialized Form

Field Summary
 
Fields inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.CPInstruction
index, o
 
Fields inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
length, opcode
 
Constructor Summary
protected Bytecodes.FieldOrMethod(short opcode, jq_Member f)
           
 
Method Summary
 String getClassName()
           
 jq_Class getClassType()
           
 jq_Class getLoadClassType()
          Returns the jq_Class of the referenced class or interface that may be loaded and resolved.
 String getName()
           
 String getSignature()
           
protected abstract  void initFromFile(jq_ConstantPool cp, jwutil.io.ByteSequence bytes, boolean wide)
          Read needed data (i.e., index) from file.
 
Methods inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.CPInstruction
dump, getIndex, getObject, getType, setIndex, setObject, toString, toString
 
Methods inherited from class joeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
accept, consumeStack, copy, getLength, getOpcode, produceStack, readInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface joeq.Compiler.BytecodeAnalysis.Bytecodes.LoadClass
getType
 

Constructor Detail

Bytecodes.FieldOrMethod

protected Bytecodes.FieldOrMethod(short opcode,
                                  jq_Member f)
Parameters:
opcode - instruction opcode
f - field or method
Method Detail

getSignature

public String getSignature()
Returns:
signature of referenced method/field.

getName

public String getName()
Returns:
name of referenced method/field.

getClassName

public String getClassName()
Returns:
name of the referenced class/interface

getClassType

public jq_Class getClassType()
Returns:
type of the referenced class/interface

getLoadClassType

public jq_Class getLoadClassType()
Description copied from interface: Bytecodes.LoadClass
Returns the jq_Class of the referenced class or interface that may be loaded and resolved.

Specified by:
getLoadClassType in interface Bytecodes.LoadClass
Returns:
type of the referenced class/interface

initFromFile

protected abstract void initFromFile(jq_ConstantPool cp,
                                     jwutil.io.ByteSequence bytes,
                                     boolean wide)
                              throws IOException
Description copied from class: Bytecodes.CPInstruction
Read needed data (i.e., index) from file.

Overrides:
initFromFile in class Bytecodes.CPInstruction
Parameters:
cp - constant pool of class we are reading
bytes - input stream
wide - wide prefix?
Throws:
IOException


Copyright © 2001-2008 John Whaley. All Rights Reserved.