Package ai.timefold.jpyinterpreter.util
Class HandlerSorterAdapter
java.lang.Object
org.objectweb.asm.MethodVisitor
org.objectweb.asm.tree.MethodNode
ai.timefold.jpyinterpreter.util.HandlerSorterAdapter
public class HandlerSorterAdapter
extends org.objectweb.asm.tree.MethodNode
Sorts the exception handlers in a method innermost-to-outermost. This
allows the programmer to add handlers without worrying about ordering them
correctly with respect to existing, in-code handlers.
Behavior is only defined for properly-nested handlers. If any "try" blocks
overlap (something that isn't possible in Java code) then this may not
do what you want.
-
Field Summary
Fields inherited from class org.objectweb.asm.tree.MethodNode
access, annotationDefault, attrs, desc, exceptions, instructions, invisibleAnnotableParameterCount, invisibleAnnotations, invisibleLocalVariableAnnotations, invisibleParameterAnnotations, invisibleTypeAnnotations, localVariables, maxLocals, maxStack, name, parameters, signature, tryCatchBlocks, visibleAnnotableParameterCount, visibleAnnotations, visibleLocalVariableAnnotations, visibleParameterAnnotations, visibleTypeAnnotationsFields inherited from class org.objectweb.asm.MethodVisitor
api -
Constructor Summary
ConstructorsConstructorDescriptionHandlerSorterAdapter(org.objectweb.asm.MethodVisitor mv, int api, int access, String name, String desc, String signature, String[] exceptions) -
Method Summary
Methods inherited from class org.objectweb.asm.tree.MethodNode
accept, accept, check, getLabelNode, visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsnMethods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitMethodInsn
-
Constructor Details
-
HandlerSorterAdapter
-
-
Method Details
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classorg.objectweb.asm.tree.MethodNode
-