类 TryCatchBlockSorter
java.lang.Object
org.beetl.ow2.asm.MethodVisitor
org.beetl.ow2.asm.tree.MethodNode
org.beetl.ow2.asm.commons.TryCatchBlockSorter
A
MethodVisitor adapter to sort the exception handlers. The handlers
are sorted 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. In fact, this adapter just sorts by the length of the "try"
block, taking advantage of the fact that a given try block must be larger
than any block it contains).- 作者:
- Adrian Sampson
-
字段概要
从类继承的字段 org.beetl.ow2.asm.tree.MethodNode
access, annotationDefault, attrs, desc, exceptions, instructions, invisibleAnnotations, invisibleLocalVariableAnnotations, invisibleParameterAnnotations, invisibleTypeAnnotations, localVariables, maxLocals, maxStack, name, parameters, signature, tryCatchBlocks, visibleAnnotations, visibleLocalVariableAnnotations, visibleParameterAnnotations, visibleTypeAnnotations从类继承的字段 org.beetl.ow2.asm.MethodVisitor
api, mv -
构造器概要
构造器限定符构造器说明protectedTryCatchBlockSorter(int api, MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) TryCatchBlockSorter(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) -
方法概要
从类继承的方法 org.beetl.ow2.asm.tree.MethodNode
accept, accept, check, getLabelNode, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
构造器详细资料
-
TryCatchBlockSorter
public TryCatchBlockSorter(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) -
TryCatchBlockSorter
protected TryCatchBlockSorter(int api, MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions)
-
-
方法详细资料
-
visitEnd
public void visitEnd()从类复制的说明:MethodVisitorVisits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited.- 覆盖:
visitEnd在类中MethodNode
-