jef.dna.instructions.impl
Class InstructionRefsCpt8

java.lang.Object
  extended by jef.dna.instructions.impl.InstructionAncestor
      extended by jef.dna.instructions.impl.InstructionAncestorRefsCpt
          extended by jef.dna.instructions.impl.InstructionRefsCpt8
All Implemented Interfaces:
java.lang.Cloneable, Instruction, InstructionRefsCpt, BytesCountable
Direct Known Subclasses:
Ldc

public abstract class InstructionRefsCpt8
extends InstructionAncestorRefsCpt

This class is the ancestor of all the concrete instruction classes referring the constant pool table with 8 bits index.

Author:
ggiovanzana

Field Summary
 
Fields inherited from class jef.dna.instructions.impl.InstructionAncestorRefsCpt
logger, MASK, SHIFT
 
Fields inherited from class jef.dna.instructions.impl.InstructionAncestor
opCode, operands, operandsCount
 
Constructor Summary
InstructionRefsCpt8()
           
 
Method Summary
 java.lang.Object clone()
          Clone this instance.
 int getIndex()
          Provides the reference to the constant pool table.
 void setIndex(int index)
          Sets the reference to the constant pool table.
 
Methods inherited from class jef.dna.instructions.impl.InstructionAncestorRefsCpt
updateRefs
 
Methods inherited from class jef.dna.instructions.impl.InstructionAncestor
fromArray, getBytesCount, getOpCode, getOperands, getOperandsCount, setOpCode, setOperands, setOperandsCountPosticipated, toArray
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jef.dna.instructions.Instruction
fromArray, getOpCode, getOperands, getOperandsCount, setOpCode, setOperands, setOperandsCountPosticipated, toArray
 
Methods inherited from interface jef.dna.util.BytesCountable
getBytesCount
 

Constructor Detail

InstructionRefsCpt8

public InstructionRefsCpt8()
Method Detail

getIndex

public int getIndex()
Provides the reference to the constant pool table.

Specified by:
getIndex in interface InstructionRefsCpt
Specified by:
getIndex in class InstructionAncestorRefsCpt
Returns:
int The index into the constant pool table

setIndex

public void setIndex(int index)
Sets the reference to the constant pool table.

Specified by:
setIndex in interface InstructionRefsCpt
Specified by:
setIndex in class InstructionAncestorRefsCpt
Parameters:
index - The index into the constant pool table

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone this instance.

Specified by:
clone in interface Instruction
Overrides:
clone in class InstructionAncestorRefsCpt
Returns:
The clone
Throws:
java.lang.CloneNotSupportedException