类的使用
org.beetl.ow2.asm.Label
使用Label的程序包
程序包
说明
OSGL MVC Server's repackaging of
org.osgl.mvc.server.asm 5.0
(for internal use only).
Provides some useful class and method adapters.
Provides an ASM visitor that constructs a tree representation of the
classes it visits.
Provides ASM visitors that can be useful for programming and
debugging purposes.
Provides SAX 2.0 adapters for ASM
visitors to convert classes to and from XML.
-
org.beetl.ow2.asm中Label的使用
返回Label的org.beetl.ow2.asm中的方法修饰符和类型方法说明protected Label[]Attribute.getLabels()Returns the labels corresponding to this attribute.protected LabelReturns the label corresponding to the given offset.参数类型为Label的org.beetl.ow2.asm中的方法修饰符和类型方法说明protected AttributeAttribute.read(ClassReader cr, int off, int len, char[] buf, int codeOff, Label[] labels) Reads atypeattribute.protected LabelReturns the label corresponding to the given offset.voidMethodVisitor.visitJumpInsn(int opcode, Label label) Visits a jump instruction.voidMethodVisitor.visitLabel(Label label) Visits a label.voidMethodVisitor.visitLineNumber(int line, Label start) Visits a line number declaration.voidMethodVisitor.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) Visits a local variable declaration.MethodVisitor.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) Visits an annotation on a local variable type.voidMethodVisitor.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) Visits a LOOKUPSWITCH instruction.voidMethodVisitor.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) Visits a TABLESWITCH instruction.voidMethodVisitor.visitTryCatchBlock(Label start, Label end, Label handler, String type) Visits a try catch block. -
org.beetl.ow2.asm.commons中Label的使用
修饰符和类型方法说明GeneratorAdapter.mark()Marks the current code position with a new label.GeneratorAdapter.newLabel()Creates a newLabel.参数类型为Label的org.beetl.ow2.asm.commons中的方法修饰符和类型方法说明voidGeneratorAdapter.catchException(Label start, Label end, Type exception) Marks the start of an exception handler.voidTableSwitchGenerator.generateCase(int key, Label end) Generates the code for a switch case.voidGenerates the instruction to jump to the given label.voidvoidvoidvoidGenerates the instructions to jump to a label based on the comparison of the top two stack values.voidvoidvoidvoidGenerates the instructions to jump to a label based on the comparison of the top two integer stack values.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidGenerates the instruction to jump to the given label if the top stack value is not null.voidvoidGenerates the instruction to jump to the given label if the top stack value is null.voidGenerates the instructions to jump to a label based on the comparison of the top integer stack value with zero.voidvoidInstructionAdapter.lookupswitch(Label dflt, int[] keys, Label[] labels) voidMarks the current code position with the given label.voidvoidInstructionAdapter.tableswitch(int min, int max, Label dflt, Label... labels) voidAdviceAdapter.visitJumpInsn(int opcode, Label label) voidAnalyzerAdapter.visitJumpInsn(int opcode, Label label) voidCodeSizeEvaluator.visitJumpInsn(int opcode, Label label) voidInstructionAdapter.visitJumpInsn(int opcode, Label label) voidJSRInlinerAdapter.visitJumpInsn(int opcode, Label lbl) Detects a JSR instruction and sets a flag to indicate we will need to do inlining.voidAdviceAdapter.visitLabel(Label label) voidAnalyzerAdapter.visitLabel(Label label) voidInstructionAdapter.visitLabel(Label label) voidLocalVariablesSorter.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) voidRemappingMethodAdapter.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) LocalVariablesSorter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) RemappingMethodAdapter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) voidAdviceAdapter.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidAnalyzerAdapter.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidCodeSizeEvaluator.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidInstructionAdapter.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidAdviceAdapter.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidAnalyzerAdapter.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidCodeSizeEvaluator.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidInstructionAdapter.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidAdviceAdapter.visitTryCatchBlock(Label start, Label end, Label handler, String type) voidRemappingMethodAdapter.visitTryCatchBlock(Label start, Label end, Label handler, String type) -
org.beetl.ow2.asm.optimizer中Label的使用
参数类型为Label的org.beetl.ow2.asm.optimizer中的方法修饰符和类型方法说明voidMethodConstantsCollector.visitLineNumber(int line, Label start) voidMethodOptimizer.visitLineNumber(int line, Label start) voidMethodConstantsCollector.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) voidMethodOptimizer.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) MethodConstantsCollector.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) voidMethodConstantsCollector.visitTryCatchBlock(Label start, Label end, Label handler, String type) -
org.beetl.ow2.asm.tree中Label的使用
返回Label的org.beetl.ow2.asm.tree中的方法参数类型为Label的org.beetl.ow2.asm.tree中的方法修饰符和类型方法说明protected LabelNodeMethodNode.getLabelNode(Label l) Returns the LabelNode corresponding to the given Label.voidMethodNode.visitJumpInsn(int opcode, Label label) voidMethodNode.visitLabel(Label label) voidMethodNode.visitLineNumber(int line, Label start) voidMethodNode.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) MethodNode.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) voidMethodNode.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidMethodNode.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidMethodNode.visitTryCatchBlock(Label start, Label end, Label handler, String type) 参数类型为Label的org.beetl.ow2.asm.tree中的构造器 -
org.beetl.ow2.asm.util中Label的使用
类型参数类型为Label的org.beetl.ow2.asm.util中的字段参数类型为Label的org.beetl.ow2.asm.util中的方法修饰符和类型方法说明protected voidASMifier.appendLabel(Label l) Appends the className of the given label tobuf.protected voidTextifier.appendLabel(Label l) Appends the className of the given label tobuf.protected voidASMifier.declareLabel(Label l) Appends a declaration of the given label tobuf.voidASMifier.visitJumpInsn(int opcode, Label label) voidCheckMethodAdapter.visitJumpInsn(int opcode, Label label) abstract voidPrinter.visitJumpInsn(int opcode, Label label) Method instruction.voidTextifier.visitJumpInsn(int opcode, Label label) voidTraceMethodVisitor.visitJumpInsn(int opcode, Label label) voidASMifier.visitLabel(Label label) voidCheckMethodAdapter.visitLabel(Label label) abstract voidPrinter.visitLabel(Label label) Method label.voidTextifier.visitLabel(Label label) voidTraceMethodVisitor.visitLabel(Label label) voidASMifier.visitLineNumber(int line, Label start) voidCheckMethodAdapter.visitLineNumber(int line, Label start) abstract voidPrinter.visitLineNumber(int line, Label start) Method debug info.voidTextifier.visitLineNumber(int line, Label start) voidTraceMethodVisitor.visitLineNumber(int line, Label start) voidASMifier.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) voidCheckMethodAdapter.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) abstract voidPrinter.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) Method debug info.voidTextifier.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) voidTraceMethodVisitor.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) ASMifier.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) CheckMethodAdapter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) Printer.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) Local variable type annotation.Textifier.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) TraceMethodVisitor.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) voidASMifier.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidCheckMethodAdapter.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) abstract voidPrinter.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) Method instruction.voidTextifier.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidTraceMethodVisitor.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) voidASMifier.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidCheckMethodAdapter.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) abstract voidPrinter.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) Method instruction.voidTextifier.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidTraceMethodVisitor.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) voidASMifier.visitTryCatchBlock(Label start, Label end, Label handler, String type) voidCheckMethodAdapter.visitTryCatchBlock(Label start, Label end, Label handler, String type) abstract voidPrinter.visitTryCatchBlock(Label start, Label end, Label handler, String type) Method exception handler.voidTextifier.visitTryCatchBlock(Label start, Label end, Label handler, String type) voidTraceMethodVisitor.visitTryCatchBlock(Label start, Label end, Label handler, String type) 类型变量类型为Label的org.beetl.ow2.asm.util中的方法参数修饰符和类型方法说明voidPrints the ASM code to create an attribute equal to this attribute.voidTextifiable.textify(StringBuffer buf, Map<Label, String> labelNames) Build a human readable representation of this attribute.类型变量类型为Label的org.beetl.ow2.asm.util中的构造器参数限定符构造器说明CheckMethodAdapter(int access, String name, String desc, MethodVisitor cmv, Map<Label, Integer> labels) Constructs a newCheckMethodAdapterobject.protectedCheckMethodAdapter(int api, MethodVisitor mv, Map<Label, Integer> labels) Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(MethodVisitor mv, Map<Label, Integer> labels) Constructs a newCheckMethodAdapterobject. -
org.beetl.ow2.asm.xml中Label的使用
类型参数类型为Label的org.beetl.ow2.asm.xml中的字段返回Label的org.beetl.ow2.asm.xml中的方法参数类型为Label的org.beetl.ow2.asm.xml中的方法修饰符和类型方法说明final voidSAXCodeAdapter.visitJumpInsn(int opcode, Label label) final voidSAXCodeAdapter.visitLabel(Label label) final voidSAXCodeAdapter.visitLineNumber(int line, Label start) voidSAXCodeAdapter.visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) SAXCodeAdapter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) final voidSAXCodeAdapter.visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) final voidSAXCodeAdapter.visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) final voidSAXCodeAdapter.visitTryCatchBlock(Label start, Label end, Label handler, String type)