|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjef.dna.instructions.BCOperations
public class BCOperations
BCOperations: ByteCodeOperations
Field Summary | |
---|---|
protected static Logger |
logger
Logger |
static int |
MASK_16
Bit mask used to exstrac a byte value from an int value. |
static int |
SHIFT_8
Position to shift. |
Constructor Summary | |
---|---|
BCOperations()
Creates a new instance of BCOperations |
Method Summary | |
---|---|
static int |
applyOffset16(int[] byteCode,
int offset)
Computes new values of indexbyte1 and indexbyte2 after offset application. |
static int |
applyOffset8(int[] byteCode,
int offset)
Computes new values of index with offset application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MASK_16
public static final int SHIFT_8
protected static Logger logger
Constructor Detail |
---|
public BCOperations()
Method Detail |
---|
public static int applyOffset8(int[] byteCode, int offset)
byteCode
- The bytecodeoffset
- The offset to apply to all the bytecode references to constant pool table entries
int
Number of processed bytes.public static int applyOffset16(int[] byteCode, int offset)
byteCode
- The bytecode to modifyoffset
- The offset to be applied to all the bytecode references to constant pool table
entries
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |