Uses of Class
org.hotswap.agent.javassist.bytecode.BadBytecode
-
Packages that use BadBytecode Package Description org.hotswap.agent.javassist.bytecode Bytecode-level API.org.hotswap.agent.javassist.bytecode.analysis Bytecode Analysis API.org.hotswap.agent.javassist.bytecode.stackmap org.hotswap.agent.javassist.convert org.hotswap.agent.javassist.expr This package contains the classes for modifying a method body.org.hotswap.agent.javassist.tools.reflect Runtime Behavioral Reflection. -
-
Uses of BadBytecode in org.hotswap.agent.javassist.bytecode
Methods in org.hotswap.agent.javassist.bytecode that throw BadBytecode Modifier and Type Method Description voidStackMapTable.Walker. appendFrame(int pos, int offsetDelta, int[] tags, int[] data)Invoked if the visited frame is aappend_frame.intCodeAttribute. computeMaxStack()Computes the maximum stack size and setsmax_stackto the computed size.voidStackMapTable.Walker. fullFrame(int pos, int offsetDelta, int[] localTags, int[] localData, int[] stackTags, int[] stackData)Invoked if the visited frame isfull_frame.voidStackMapTable.Walker. chopFrame(int pos, int offsetDelta, int k)Invoked if the visited frame is achop_frame.intCodeIterator. 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()).voidCodeIterator. insert(int pos, byte[] code)Inserts the given bytecode sequence before the instruction at the given indexpos.intCodeIterator. insertAt(int pos, byte[] code)Inserts the given bytecode sequence before the instruction at the given indexpos.intCodeIterator. 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()).voidCodeIterator. insertEx(int pos, byte[] code)Inserts the given bytecode sequence exclusively before the instruction at the given indexpos.intCodeIterator. insertExAt(int pos, byte[] code)Inserts the given bytecode sequence exclusively before the instruction at the given indexpos.intCodeIterator. 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()).intCodeIterator. insertExGap(int pos, int length)Inserts an exclusive gap in front of the instruction at the given indexpos.intCodeIterator. 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()).intCodeIterator. insertGap(int pos, int length)Inserts a gap in front of the instruction at the given indexpos.CodeIterator.GapCodeIterator. insertGapAt(int pos, int length, boolean exclusive)Inserts an inclusive or exclusive gap in front of the instruction at the given indexpos.voidStackMap. insertLocal(int index, int tag, int classInfo)Updates this stack map table when a new local variable is inserted for a new parameter.voidStackMapTable. insertLocal(int index, int tag, int classInfo)Updates this stack map table when a new local variable is inserted for a new parameter.voidCodeAttribute. insertLocalVar(int where, int size)Changes the index numbers of the local variables to append a new parameter.intCodeIterator. next()Returns the index of the next instruction (not the operand following the current opcode).voidStackMapTable.Walker. parse()Visits each entry of the stack map frames.voidMethodInfo. rebuildStackMap(ClassPool pool)Rebuilds a stack map table.voidMethodInfo. rebuildStackMapForME(ClassPool pool)Rebuilds a stack map table for J2ME (CLDC).voidMethodInfo. rebuildStackMapIf6(ClassPool pool, ClassFile cf)Rebuilds a stack map table if the class file is for Java 6 or later.voidStackMapTable.Walker. sameFrame(int pos, int offsetDelta)Invoked if the visited frame is asame_frameor asame_frame_extended.voidStackMapTable.Walker. sameLocals(int pos, int offsetDelta, int stackTag, int stackData)Invoked if the visited frame is asame_locals_1_stack_item_frameor asame_locals_1_stack_item_frame_extended.voidMethodInfo. setSuperclass(String superclass)Changes a super constructor called by this constructor.intCodeIterator. skipConstructor()Moves to the instruction for eithersuper()orthis().intCodeIterator. skipSuperConstructor()Moves to the instruction forsuper().intCodeIterator. skipThisConstructor()Moves to the instruction forthis().static SignatureAttribute.ClassSignatureSignatureAttribute. toClassSignature(String sig)Parses the given signature string as a class signature.static SignatureAttribute.ObjectTypeSignatureAttribute. toFieldSignature(String sig)Parses the given signature string as a field type signature.static SignatureAttribute.MethodSignatureSignatureAttribute. toMethodSignature(String sig)Parses the given signature string as a method type signature.static SignatureAttribute.TypeSignatureAttribute. toTypeSignature(String sig)Parses the given signature string as a type signature.Constructors in org.hotswap.agent.javassist.bytecode that throw BadBytecode Constructor Description MethodInfo(ConstPool cp, String methodname, MethodInfo src, Map<String,String> classnameMap)Constructs a copy ofmethod_infostructure. -
Uses of BadBytecode in org.hotswap.agent.javassist.bytecode.analysis
Methods in org.hotswap.agent.javassist.bytecode.analysis that throw BadBytecode Modifier and Type Method Description Frame[]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[]Analyzer. analyze(CtMethod 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.voidExecutor. execute(MethodInfo method, int pos, CodeIterator iter, Frame frame, Subroutine subroutine)Execute the instruction, modeling the effects on the specified frame and subroutine.FrameControlFlow. frameAt(int pos)Returns the types of the local variables and stack frame entries available at the given position.Subroutine[]SubroutineScanner. scan(MethodInfo method)Constructors in org.hotswap.agent.javassist.bytecode.analysis that throw BadBytecode Constructor Description ControlFlow(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 org.hotswap.agent.javassist.bytecode.stackmap
Methods in org.hotswap.agent.javassist.bytecode.stackmap that throw BadBytecode Modifier and Type Method Description static voidTypeData. aastore(TypeData array, TypeData value, ClassPool cp)protected intTracer. doOpcode(int pos, byte[] code)Does abstract interpretation on the given bytecode instruction.static BasicBlockBasicBlock. find(BasicBlock[] blocks, int pos)BasicBlock[]BasicBlock.Maker. make(CodeIterator ci, int begin, int end, ExceptionTable et)BasicBlock[]BasicBlock.Maker. make(MethodInfo minfo)static StackMapTableMapMaker. make(ClassPool classes, MethodInfo minfo)Computes the stack map table of the given method and returns it.static TypeDataTypeData.ArrayElement. make(TypeData array)static StackMapMapMaker. make2(ClassPool classes, MethodInfo minfo)Computes the stack map table for J2ME.static TypedBlock[]TypedBlock. makeBlocks(MethodInfo minfo, CodeAttribute ca, boolean optimize)Divides the method body into basic blocks.protected voidBasicBlock.Maker. makeJsr(Map<Integer,org.hotswap.agent.javassist.bytecode.stackmap.BasicBlock.Mark> marks, int pos, int target, int size)voidTypedBlock. setStackMap(int st, TypeData[] stack, int nl, TypeData[] locals)voidTypeData.ArrayElement. setType(String s, ClassPool cp)voidTypeData.ArrayType. setType(String s, ClassPool cp)voidTypeData.BasicType. setType(String s, ClassPool cp)voidTypeData.ClassName. setType(String typeName, ClassPool cp)abstract voidTypeData. setType(String s, ClassPool cp)voidTypeData.TypeVar. setType(String typeName, ClassPool cp)voidTypeData.UninitTypeVar. setType(String s, ClassPool cp)protected voidTracer. visitBranch(int pos, byte[] code, int offset)protected voidTracer. visitGoto(int pos, byte[] code, int offset)protected voidTracer. visitJSR(int pos, byte[] code)Invoked when the visited instruction is jsr.protected voidTracer. visitLookupSwitch(int pos, byte[] code, int n, int pairsPos, int defaultOffset)protected voidTracer. visitRET(int pos, byte[] code)Invoked when the visited instruction is ret or wide ret.protected voidTracer. visitReturn(int pos, byte[] code)protected voidTracer. visitTableSwitch(int pos, byte[] code, int n, int offsetPos, int defaultOffset)protected voidTracer. visitThrow(int pos, byte[] code) -
Uses of BadBytecode in org.hotswap.agent.javassist.convert
Methods in org.hotswap.agent.javassist.convert that throw BadBytecode Modifier and Type Method Description protected intTransformBefore. match(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp)protected intTransformCall. match(int c, int pos, CodeIterator iterator, int typedesc, ConstPool cp)protected intTransformAfter. match2(int pos, CodeIterator iterator)protected intTransformBefore. match2(int pos, CodeIterator iterator)intTransformAccessArrayField. transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp)intTransformCall. transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp)Modify INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC and INVOKEVIRTUAL so that a different method is invoked.abstract intTransformer. transform(CtClass clazz, int pos, CodeIterator it, ConstPool cp)intTransformReadField. transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp)intTransformWriteField. transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) -
Uses of BadBytecode in org.hotswap.agent.javassist.expr
Methods in org.hotswap.agent.javassist.expr that throw BadBytecode Modifier and Type Method Description protected voidExpr. replace0(int pos, Bytecode bytecode, int size) -
Uses of BadBytecode in org.hotswap.agent.javassist.tools.reflect
Methods in org.hotswap.agent.javassist.tools.reflect that throw BadBytecode Modifier and Type Method Description voidReflection. rebuildClassFile(ClassFile cf)
-