Class SurroundingTryCatchMethodAdapter
java.lang.Object
org.objectweb.asm.MethodVisitor
de.uzl.its.swat.instrument.AbstractMethodAdapter
de.uzl.its.swat.instrument.symbolicwrapper.SurroundingTryCatchMethodAdapter
A visitor to visit a Java method This class surrounds the whole function with a try catch blog to
ad a solve in case of an error.
-
Field Summary
Fields inherited from class org.objectweb.asm.MethodVisitor
api, mv
-
Constructor Summary
ConstructorDescriptionSurroundingTryCatchMethodAdapter
(org.objectweb.asm.MethodVisitor mv, String name, String desc) Constructor that calls the super from the default MethodVisitor -
Method Summary
Methods inherited from class de.uzl.its.swat.instrument.AbstractMethodAdapter
getConfig, getDesc, getName, handleMethodParameters, splitParameters, symbolicBoolean, symbolicByte, symbolicChar, symbolicDouble, symbolicFloat, symbolicInt, symbolicLong, symbolicLongObject, symbolicShort, symbolicString
Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
Constructor Details
-
Method Details
-
visitMaxs
public void visitMaxs(int maxStack, int maxLocals) Add a solve in case an exception happened inside the method- Overrides:
visitMaxs
in classorg.objectweb.asm.MethodVisitor
- Parameters:
maxStack
-maxLocals
-
-
visitCode
public void visitCode()- Overrides:
visitCode
in classorg.objectweb.asm.MethodVisitor
-