Uses of Class
org.objectweb.asm.Label
-
Packages that use Label Package Description org.objectweb.asm Provides a small and fast bytecode manipulation framework.org.objectweb.asm.commons Provides some useful class and method adapters.org.objectweb.asm.tree Provides an ASM visitor that constructs a tree representation of the classes it visits.org.objectweb.asm.util Provides ASM visitors that can be useful for programming and debugging purposes. -
-
Uses of Label in org.objectweb.asm
Fields in org.objectweb.asm declared as Label Modifier and Type Field Description private LabelMethodWriter. currentBasicBlockThe current basic block, i.e.(package private) Label[]Context. currentLocalVariableAnnotationRangeEndsThe end of each local variable range in the current local variable annotation.(package private) Label[]Context. currentLocalVariableAnnotationRangeStartsThe start of each local variable range in the current local variable annotation.(package private) Label[]Context. currentMethodLabelsThe labels of the current method, indexed by bytecode offset (only bytecode offsets for which a label is needed have a non null associated Label).(package private) static LabelLabel. EMPTY_LISTA sentinel element used to indicate the end of a list of labels.(package private) LabelHandler. endPcThe end_pc field of this JVMS exception_table entry.private LabelMethodWriter. firstBasicBlockThe first basic block of the method.(package private) LabelHandler. handlerPcThe handler_pc field of this JVMS exception_table entry.private LabelMethodWriter. lastBasicBlockThe last basic block of the method (in bytecode offset order).(package private) LabelLabel. nextBasicBlockThe successor of this label, in the order they are visited inMethodVisitor.visitLabel(org.objectweb.asm.Label).(package private) LabelLabel. nextListElementThe next element in the list of labels to which this label belongs, or null if it does not belong to any list.(package private) LabelFrame. ownerThe basic block to which these input and output stack map frames correspond.(package private) LabelHandler. startPcThe start_pc field of this JVMS exception_table entry.(package private) LabelEdge. successorThe successor block of this control flow graph edge.Methods in org.objectweb.asm that return Label Modifier and Type Method Description private LabelClassReader. createLabel(int bytecodeOffset, Label[] labels)Creates a label without theFLAG_DEBUG_ONLYflag set, for the given bytecode offset.(package private) LabelLabel. getCanonicalInstance()Returns the "canonical"Labelinstance corresponding to this label's bytecode offset, if known, otherwise the label itself.protected Label[]Attribute. getLabels()Returns the labels corresponding to this attribute.private LabelLabel. pushSuccessors(Label listOfLabelsToProcess)Adds the successors of this label in the method's control flow graph (except those corresponding to a jsr target, and those already in a list of labels) to the given list of blocks to process, and returns the new list.protected LabelClassReader. readLabel(int bytecodeOffset, Label[] labels)Returns the label corresponding to the given bytecode offset.Methods in org.objectweb.asm with parameters of type Label Modifier and Type Method Description (package private) voidLabel. addSubroutineRetSuccessors(Label subroutineCaller)Finds the basic blocks that end a subroutine starting with the basic block corresponding to this label and, for each one of them, adds an outgoing edge to the basic block following the given subroutine call.private voidMethodWriter. addSuccessorToCurrentBasicBlock(int info, Label successor)Adds a successor toMethodWriter.currentBasicBlockin the control flow graph.private voidClassReader. createDebugLabel(int bytecodeOffset, Label[] labels)Creates a label with theFLAG_DEBUG_ONLYflag set, if there is no already existing label for the given bytecode offset (otherwise does nothing).private LabelClassReader. createLabel(int bytecodeOffset, Label[] labels)Creates a label without theFLAG_DEBUG_ONLYflag set, for the given bytecode offset.private LabelLabel. pushSuccessors(Label listOfLabelsToProcess)Adds the successors of this label in the method's control flow graph (except those corresponding to a jsr target, and those already in a list of labels) to the given list of blocks to process, and returns the new list.protected AttributeAttribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeAttributeOffset, Label[] labels)Reads aAttribute.typeattribute.private AttributeClassReader. readAttribute(Attribute[] attributePrototypes, java.lang.String type, int offset, int length, char[] charBuffer, int codeAttributeOffset, Label[] labels)Reads a non standard JVMS 'attribute' structure inClassReader.classFileBuffer.protected LabelClassReader. readLabel(int bytecodeOffset, Label[] labels)Returns the label corresponding to the given bytecode offset.private intClassReader. readVerificationTypeInfo(int verificationTypeInfoOffset, java.lang.Object[] frame, int index, char[] charBuffer, Label[] labels)Reads a JVMS 'verification_type_info' structure and stores it at the given index in the given array.(package private) static HandlerHandler. removeRange(Handler firstHandler, Label start, Label end)Removes the range between start and end from the Handler list that begins with the given element.voidMethodVisitor. visitJumpInsn(int opcode, Label label)Visits a jump instruction.voidMethodWriter. visitJumpInsn(int opcode, Label label)voidMethodVisitor. visitLabel(Label label)Visits a label.voidMethodWriter. visitLabel(Label label)voidMethodVisitor. visitLineNumber(int line, Label start)Visits a line number declaration.voidMethodWriter. visitLineNumber(int line, Label start)voidMethodVisitor. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)Visits a local variable declaration.voidMethodWriter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)AnnotationVisitorMethodVisitor. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)Visits an annotation on a local variable type.AnnotationVisitorMethodWriter. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)voidMethodVisitor. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)Visits a LOOKUPSWITCH instruction.voidMethodWriter. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)private voidMethodWriter. visitSwitchInsn(Label dflt, Label[] labels)voidMethodVisitor. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)Visits a TABLESWITCH instruction.voidMethodWriter. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)voidMethodVisitor. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)Visits a try catch block.voidMethodWriter. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)Constructors in org.objectweb.asm with parameters of type Label Constructor Description CurrentFrame(Label owner)Edge(int info, Label successor, Edge nextEdge)Constructs a new Edge.Frame(Label owner)Constructs a new Frame.Handler(Handler handler, Label startPc, Label endPc)Constructs a new Handler from the given one, with a different scope.Handler(Label startPc, Label endPc, Label handlerPc, int catchType, java.lang.String catchTypeDescriptor)Constructs a new Handler. -
Uses of Label in org.objectweb.asm.commons
Fields in org.objectweb.asm.commons with type parameters of type Label Modifier and Type Field Description private java.util.Map<Label,java.util.List<java.lang.Object>>AdviceAdapter. forwardJumpStackFramesThe stack map frames corresponding to the labels of the forward jumps made *before* the super class constructor has been called (note that the Java Virtual Machine forbids backward jumps before the super class constructor is called).private java.util.List<Label>AnalyzerAdapter. labelsThe labels that designate the next instruction to be visited.Methods in org.objectweb.asm.commons that return Label Modifier and Type Method Description LabelGeneratorAdapter. mark()Marks the current code position with a new label.LabelGeneratorAdapter. newLabel()Constructs a newLabel.Methods in org.objectweb.asm.commons with parameters of type Label Modifier and Type Method Description private voidAdviceAdapter. addForwardJump(Label label)private voidAdviceAdapter. addForwardJumps(Label dflt, Label[] labels)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.voidGeneratorAdapter. goTo(Label label)Generates the instruction to jump to the given label.voidInstructionAdapter. goTo(Label label)voidInstructionAdapter. ifacmpeq(Label label)voidInstructionAdapter. ifacmpne(Label label)voidGeneratorAdapter. ifCmp(Type type, int mode, Label label)Generates the instructions to jump to a label based on the comparison of the top two stack values.voidInstructionAdapter. ifeq(Label label)voidInstructionAdapter. ifge(Label label)voidInstructionAdapter. ifgt(Label label)voidGeneratorAdapter. ifICmp(int mode, Label label)Generates the instructions to jump to a label based on the comparison of the top two integer stack values.voidInstructionAdapter. ificmpeq(Label label)voidInstructionAdapter. ificmpge(Label label)voidInstructionAdapter. ificmpgt(Label label)voidInstructionAdapter. ificmple(Label label)voidInstructionAdapter. ificmplt(Label label)voidInstructionAdapter. ificmpne(Label label)voidInstructionAdapter. ifle(Label label)voidInstructionAdapter. iflt(Label label)voidInstructionAdapter. ifne(Label label)voidInstructionAdapter. ifnonnull(Label label)voidGeneratorAdapter. ifNonNull(Label label)Generates the instruction to jump to the given label if the top stack value is not null.voidInstructionAdapter. ifnull(Label label)voidGeneratorAdapter. ifNull(Label label)Generates the instruction to jump to the given label if the top stack value is null.voidGeneratorAdapter. ifZCmp(int mode, Label label)Generates the instructions to jump to a label based on the comparison of the top integer stack value with zero.voidInstructionAdapter. jsr(Label label)voidInstructionAdapter. lookupswitch(Label dflt, int[] keys, Label[] labels)voidGeneratorAdapter. mark(Label label)Marks the current code position with the given label.voidInstructionAdapter. mark(Label label)protected AttributeModuleHashesAttribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeAttributeOffset, Label[] labels)protected AttributeModuleResolutionAttribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, Label[] labels)protected AttributeModuleTargetAttribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, Label[] labels)voidInstructionAdapter. 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 label)voidAdviceAdapter. visitLabel(Label label)voidAnalyzerAdapter. visitLabel(Label label)voidInstructionAdapter. visitLabel(Label label)voidAnalyzerAdapter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)voidLocalVariablesSorter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)voidMethodRemapper. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)AnnotationVisitorLocalVariablesSorter. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)AnnotationVisitorMethodRemapper. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, 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, java.lang.String type)voidMethodRemapper. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type) -
Uses of Label in org.objectweb.asm.tree
Fields in org.objectweb.asm.tree declared as Label Modifier and Type Field Description private LabelLabelNode. valueMethods in org.objectweb.asm.tree that return Label Modifier and Type Method Description LabelLabelNode. getLabel()Returns the label encapsulated by this node.Methods in org.objectweb.asm.tree with parameters of type Label Modifier and Type Method Description protected LabelNodeMethodNode. getLabelNode(Label label)Returns the LabelNode corresponding to the given Label.private LabelNode[]MethodNode. getLabelNodes(Label[] labels)voidMethodNode. visitJumpInsn(int opcode, Label label)voidMethodNode. visitLabel(Label label)voidMethodNode. visitLineNumber(int line, Label start)voidMethodNode. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)AnnotationVisitorMethodNode. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, 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, java.lang.String type)Constructors in org.objectweb.asm.tree with parameters of type Label Constructor Description LabelNode(Label label) -
Uses of Label in org.objectweb.asm.util
Fields in org.objectweb.asm.util with type parameters of type Label Modifier and Type Field Description private java.util.List<Label>CheckMethodAdapter. handlersThe exception handler ranges.private java.util.Map<Label,java.lang.Integer>CheckClassAdapter. labelInsnIndicesThe index of the instruction designated by each visited label so far.private java.util.Map<Label,java.lang.Integer>CheckMethodAdapter. labelInsnIndicesThe index of the instruction designated by each visited label.protected java.util.Map<Label,java.lang.String>ASMifier. labelNamesThe name of the Label variables in the produced code.protected java.util.Map<Label,java.lang.String>Textifier. labelNamesThe names of the labels.private java.util.Set<Label>CheckMethodAdapter. referencedLabelsThe labels referenced by the visited method.Methods in org.objectweb.asm.util with parameters of type Label Modifier and Type Method Description protected voidASMifier. appendLabel(Label label)Appends the name of the given label toPrinter.stringBuilder.protected voidTextifier. appendLabel(Label label)Appends the name of the given label toPrinter.stringBuilder.private voidCheckMethodAdapter. checkLabel(Label label, boolean checkVisited, java.lang.String message)Checks that the given label is not null.protected voidASMifier. declareLabel(Label label)Appends a declaration of the given label toPrinter.stringBuilder.voidASMifier. visitJumpInsn(int opcode, Label label)voidCheckMethodAdapter. visitJumpInsn(int opcode, Label label)abstract voidPrinter. visitJumpInsn(int opcode, Label label)Method jump 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(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)voidCheckMethodAdapter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)abstract voidPrinter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)Method debug info.voidTextifier. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)voidTraceMethodVisitor. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)PrinterASMifier. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)AnnotationVisitorCheckMethodAdapter. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)PrinterPrinter. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)Local variable type annotation.PrinterTextifier. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)AnnotationVisitorTraceMethodVisitor. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, 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, java.lang.String type)voidCheckMethodAdapter. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)abstract voidPrinter. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)Method exception handler.voidTextifier. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)voidTraceMethodVisitor. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)Method parameters in org.objectweb.asm.util with type arguments of type Label Modifier and Type Method Description voidASMifierSupport. asmify(java.lang.StringBuilder outputBuilder, java.lang.String visitorVariableName, java.util.Map<Label,java.lang.String> labelNames)Generates the ASM code to create an attribute equal to this attribute.voidTextifierSupport. textify(java.lang.StringBuilder outputBuilder, java.util.Map<Label,java.lang.String> labelNames)Generates a human readable representation of this attribute.Constructor parameters in org.objectweb.asm.util with type arguments of type Label Constructor Description CheckMethodAdapter(int api, int access, java.lang.String name, java.lang.String descriptor, MethodVisitor methodVisitor, java.util.Map<Label,java.lang.Integer> labelInsnIndices)Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(int access, java.lang.String name, java.lang.String descriptor, MethodVisitor methodVisitor, java.util.Map<Label,java.lang.Integer> labelInsnIndices)Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(int api, MethodVisitor methodVisitor, java.util.Map<Label,java.lang.Integer> labelInsnIndices)Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(MethodVisitor methodVisitor, java.util.Map<Label,java.lang.Integer> labelInsnIndices)Constructs a newCheckMethodAdapterobject.
-