Uses of Class
javassist.bytecode.BadBytecode
Package
Description
Bytecode-level API.
Bytecode Analysis API.
Runtime Behavioral Reflection.
-
Uses of BadBytecode in javassist.bytecode
Modifier and TypeMethodDescriptionvoid
StackMapTable.Walker.appendFrame
(int pos, int offsetDelta, int[] tags, int[] data) Invoked if the visited frame is aappend_frame
.void
StackMapTable.Walker.chopFrame
(int pos, int offsetDelta, int k) Invoked if the visited frame is achop_frame
.int
CodeAttribute.computeMaxStack()
Computes the maximum stack size and setsmax_stack
to the computed size.void
StackMapTable.Walker.fullFrame
(int pos, int offsetDelta, int[] localTags, int[] localData, int[] stackTags, int[] stackData) Invoked if the visited frame isfull_frame
.int
CodeIterator.insert
(byte[] code) Inserts the given bytecode sequence before the next instruction that would be returned bynext()
(not before the instruction returned by the last call tonext()
).void
CodeIterator.insert
(int pos, byte[] code) Inserts the given bytecode sequence before the instruction at the given indexpos
.int
CodeIterator.insertAt
(int pos, byte[] code) Inserts the given bytecode sequence before the instruction at the given indexpos
.int
CodeIterator.insertEx
(byte[] code) Inserts the given bytecode sequence exclusively before the next instruction that would be returned bynext()
(not before the instruction returned by tha last call tonext()
).void
CodeIterator.insertEx
(int pos, byte[] code) Inserts the given bytecode sequence exclusively before the instruction at the given indexpos
.int
CodeIterator.insertExAt
(int pos, byte[] code) Inserts the given bytecode sequence exclusively before the instruction at the given indexpos
.int
CodeIterator.insertExGap
(int length) Inserts an exclusive gap before the next instruction that would be returned bynext()
(not before the instruction returned by the last call tonext()
).int
CodeIterator.insertExGap
(int pos, int length) Inserts an exclusive gap in front of the instruction at the given indexpos
.int
CodeIterator.insertGap
(int length) Inserts a gap before the next instruction that would be returned bynext()
(not before the instruction returned by the last call tonext()
).int
CodeIterator.insertGap
(int pos, int length) Inserts a gap in front of the instruction at the given indexpos
.CodeIterator.insertGapAt
(int pos, int length, boolean exclusive) Inserts an inclusive or exclusive gap in front of the instruction at the given indexpos
.void
StackMap.insertLocal
(int index, int tag, int classInfo) Updates this stack map table when a new local variable is inserted for a new parameter.void
StackMapTable.insertLocal
(int index, int tag, int classInfo) Updates this stack map table when a new local variable is inserted for a new parameter.void
CodeAttribute.insertLocalVar
(int where, int size) Changes the index numbers of the local variables to append a new parameter.int
CodeIterator.next()
Returns the index of the next instruction (not the operand following the current opcode).void
StackMapTable.Walker.parse()
Visits each entry of the stack map frames.void
MethodInfo.rebuildStackMap
(ClassPool pool) Rebuilds a stack map table.void
MethodInfo.rebuildStackMapForME
(ClassPool pool) Rebuilds a stack map table for J2ME (CLDC).void
MethodInfo.rebuildStackMapIf6
(ClassPool pool, ClassFile cf) Rebuilds a stack map table if the class file is for Java 6 or later.void
StackMapTable.Walker.sameFrame
(int pos, int offsetDelta) Invoked if the visited frame is asame_frame
or asame_frame_extended
.void
StackMapTable.Walker.sameLocals
(int pos, int offsetDelta, int stackTag, int stackData) Invoked if the visited frame is asame_locals_1_stack_item_frame
or asame_locals_1_stack_item_frame_extended
.void
MethodInfo.setSuperclass
(String superclass) Changes a super constructor called by this constructor.int
CodeIterator.skipConstructor()
Moves to the instruction for eithersuper()
orthis()
.int
CodeIterator.skipSuperConstructor()
Moves to the instruction forsuper()
.int
CodeIterator.skipThisConstructor()
Moves to the instruction forthis()
.SignatureAttribute.toClassSignature
(String sig) Parses the given signature string as a class signature.SignatureAttribute.toFieldSignature
(String sig) Parses the given signature string as a field type signature.SignatureAttribute.toMethodSignature
(String sig) Parses the given signature string as a method type signature.static SignatureAttribute.Type
SignatureAttribute.toTypeSignature
(String sig) Parses the given signature string as a type signature.ModifierConstructorDescriptionMethodInfo
(ConstPool cp, String methodname, MethodInfo src, Map<String, String> classnameMap) Constructs a copy ofmethod_info
structure. -
Uses of BadBytecode in javassist.bytecode.analysis
Modifier and TypeMethodDescriptionFrame[]
Analyzer.analyze
(CtClass clazz, MethodInfo method) Performs data-flow analysis on a method and returns an array, indexed by instruction position, containing the starting frame state of all reachable instructions.Frame[]
Performs data-flow analysis on a method and returns an array, indexed by instruction position, containing the starting frame state of all reachable instructions.void
Executor.execute
(MethodInfo method, int pos, CodeIterator iter, Frame frame, Subroutine subroutine) Execute the instruction, modeling the effects on the specified frame and subroutine.ControlFlow.frameAt
(int pos) Returns the types of the local variables and stack frame entries available at the given position.SubroutineScanner.scan
(MethodInfo method) ModifierConstructorDescriptionControlFlow
(CtClass ctclazz, MethodInfo minfo) Constructs a control-flow analyzer.ControlFlow
(CtMethod method) Constructs a control-flow analyzer for the given method. -
Uses of BadBytecode in javassist.tools.reflect