|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.weaver.transformation.bytecode.CodeOperations
public class CodeOperations
Additional operations for a CodeIterator that can improve the general capabilities of the CodeIterator without changing its actual structure.
| Constructor Summary | |
|---|---|
CodeOperations(javassist.bytecode.CodeIterator it)
Create a CodeOperations instance. |
|
| Method Summary | |
|---|---|
int |
replace(int pos,
byte[] newCode)
Replaces the code with the passed byte code. |
int |
replace(int pos,
javassist.bytecode.Bytecode code)
Extracts the code to use from a Bytecode object and replaces the code at a particular position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeOperations(javassist.bytecode.CodeIterator it)
it - The target code iterator.| Method Detail |
|---|
public int replace(int pos,
byte[] newCode)
throws javassist.bytecode.BadBytecode
pos - The position to start the replacement atnewCode - The new byte code
javassist.bytecode.BadBytecode - if the gap can't be inserted.
public int replace(int pos,
javassist.bytecode.Bytecode code)
throws javassist.bytecode.BadBytecode
pos - The position to place the codecode - The byte code to use
javassist.bytecode.BadBytecodereplace(int, byte[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||