public class JumpUtils extends Object
Constructor and Description |
---|
JumpUtils() |
Modifier and Type | Method and Description |
---|---|
static JumpMarker |
addJumpInstruction(javassist.bytecode.Bytecode code)
After writing the instruction that requires a branch offset (e.g.
|
public static JumpMarker addJumpInstruction(javassist.bytecode.Bytecode code)
Bytecode
call this method. This will write two zero bytes
to the stream. When you have reached the position in the bytecode that you
want the jump to end at call JumpMarker.mark()
, this will update
the branch offset to point to the next bytecode instruction that is addedCopyright © 2012 Seam Framework. All Rights Reserved.