|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjef.dna.instructions.impl.InstructionAncestor
jef.dna.instructions.impl.InstructionAncestorRefsCpt
public abstract class InstructionAncestorRefsCpt
This class is the ancestor of all the concrete instruction classes referring the constant pool table.
| Field Summary | |
|---|---|
protected static Logger |
logger
Logger |
protected static int |
MASK
Bit mask used to extract a byte value from an int value. |
protected static int |
SHIFT
Positions to shift. |
| Fields inherited from class jef.dna.instructions.impl.InstructionAncestor |
|---|
opCode, operands, operandsCount |
| Constructor Summary | |
|---|---|
InstructionAncestorRefsCpt()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone this instance. |
abstract int |
getIndex()
Provides the reference to the constant pool table. |
abstract void |
setIndex(int index)
Sets the reference to the constant pool table. |
int |
updateRefs(int offset)
This method implements the logic necessary to update all the references to constant pool table's entries contained within the bytecode instruction. |
| 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 |
| Field Detail |
|---|
protected static Logger logger
protected static final int SHIFT
protected static final int MASK
| Constructor Detail |
|---|
public InstructionAncestorRefsCpt()
| Method Detail |
|---|
public abstract int getIndex()
getIndex in interface InstructionRefsCptpublic abstract void setIndex(int index)
setIndex in interface InstructionRefsCptindex - The index into the constant pool tablepublic int updateRefs(int offset)
updateRefs in interface InstructionupdateRefs in class InstructionAncestoroffset - The offset used for updating expressed as number of cpt's entries to be skipped
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface Instructionclone in class InstructionAncestorjava.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||