|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tc.asm.tree.MemberNode
com.tc.asm.tree.MethodNode
com.tc.asm.commons.TryCatchBlockSorter
public class TryCatchBlockSorter
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. 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).
Field Summary |
---|
Fields inherited from class com.tc.asm.tree.MethodNode |
---|
access, annotationDefault, desc, exceptions, instructions, invisibleParameterAnnotations, localVariables, maxLocals, maxStack, name, signature, tryCatchBlocks, visibleParameterAnnotations |
Fields inherited from class com.tc.asm.tree.MemberNode |
---|
attrs, invisibleAnnotations, visibleAnnotations |
Constructor Summary | |
---|---|
TryCatchBlockSorter(MethodVisitor mv,
int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.String[] exceptions)
|
Method Summary | |
---|---|
void |
visitEnd()
Visits the end of this class, field or method. |
Methods inherited from class com.tc.asm.tree.MethodNode |
---|
accept, accept, getLabelNode, visitAnnotationDefault, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn |
Methods inherited from class com.tc.asm.tree.MemberNode |
---|
visitAnnotation, visitAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tc.asm.MethodVisitor |
---|
visitAnnotation, visitAttribute |
Constructor Detail |
---|
public TryCatchBlockSorter(MethodVisitor mv, int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
Method Detail |
---|
public void visitEnd()
MemberNode
visitEnd
in interface MethodVisitor
visitEnd
in class MemberNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |