Uses of Class
org.objectweb.asm.Label
Packages that use Label
Package
Description
Provides a small and fast bytecode manipulation framework.
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.
-
Uses of Label in org.objectweb.asm
Fields in org.objectweb.asm declared as LabelModifier and TypeFieldDescriptionprivate LabelMethodWriter.currentBasicBlockThe current basic block, i.e.(package private) Label[]The end of each local variable range in the current local variable annotation.(package private) Label[]The 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 final LabelLabel.EMPTY_LISTA sentinel element used to indicate the end of a list of labels.(package private) final LabelHandler.endPcThe end_pc field of this JVMS exception_table entry.private LabelMethodWriter.firstBasicBlockThe first basic block of the method.(package private) final LabelHandler.handlerPcThe handler_pc field of this JVMS exception_table entry.(package private) final LabelSymbolTable.LabelEntry.labelThe value of this label 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) final LabelHandler.startPcThe start_pc field of this JVMS exception_table entry.(package private) final LabelEdge.successorThe successor block of this control flow graph edge.Methods in org.objectweb.asm that return LabelModifier and TypeMethodDescriptionprivate LabelClassReader.createLabel(int bytecodeOffset, Label[] labels) Creates a label without theFLAG_DEBUG_ONLYflag set, for the given bytecode offset.(package private) final LabelLabel.getCanonicalInstance()Returns the "canonical"Labelinstance corresponding to this label's bytecode offset, if known, otherwise the label itself.(package private) LabelSymbolTable.getForwardUninitializedLabel(int typeIndex) Returns the label corresponding to the "forward uninitialized" type table element whose index is given.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 LabelReturns the label corresponding to the given bytecode offset.Methods in org.objectweb.asm with parameters of type LabelModifier and TypeMethodDescription(package private) intSymbolTable.addForwardUninitializedType(String value, Label label) Adds a "forward uninitialized" type in the type table of this symbol table.(package private) final 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 SymbolTable.LabelEntrySymbolTable.getOrAddLabelEntry(Label label) Returns theSymbolTable.LabelEntrycorresponding to the given label.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, String type, int offset, int length, char[] charBuffer, int codeAttributeOffset, Label[] labels) Reads a non standard JVMS 'attribute' structure inClassReader.classFileBuffer.protected LabelReturns the label corresponding to the given bytecode offset.private intClassReader.readVerificationTypeInfo(int verificationTypeInfoOffset, 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(String name, String descriptor, String signature, Label start, Label end, int index) Visits a local variable declaration.voidMethodWriter.visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index) MethodVisitor.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) Visits an annotation on a local variable type.MethodWriter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, 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, String type) Visits a try catch block.voidMethodWriter.visitTryCatchBlock(Label start, Label end, Label handler, String type) Constructors in org.objectweb.asm with parameters of type LabelModifierConstructorDescription(package private)CurrentFrame(Label owner) (package private)Constructs a new Edge.(package private)Constructs a new Frame.(package private)Constructs a new Handler from the given one, with a different scope.(package private)Constructs a new Handler.(package private)LabelEntry(int index, Label label) -
Uses of Label in org.objectweb.asm.commons
Fields in org.objectweb.asm.commons with type parameters of type LabelModifier and TypeFieldDescriptionAdviceAdapter.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).AnalyzerAdapter.labelsThe labels that designate the next instruction to be visited.Methods in org.objectweb.asm.commons that return LabelModifier and TypeMethodDescriptionGeneratorAdapter.mark()Marks the current code position with a new label.GeneratorAdapter.newLabel()Constructs a newLabel.Methods in org.objectweb.asm.commons with parameters of type LabelModifier and TypeMethodDescriptionprivate 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.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.voidprotected 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(String name, String descriptor, String signature, Label start, Label end, int index) voidLocalVariablesSorter.visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index) voidMethodRemapper.visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index) LocalVariablesSorter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) MethodRemapper.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, 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, String type) voidMethodRemapper.visitTryCatchBlock(Label start, Label end, Label handler, String type) -
Uses of Label in org.objectweb.asm.tree
Fields in org.objectweb.asm.tree declared as LabelMethods in org.objectweb.asm.tree that return LabelModifier and TypeMethodDescriptionLabelNode.getLabel()Returns the label encapsulated by this node.Methods in org.objectweb.asm.tree with parameters of type LabelModifier and TypeMethodDescriptionprotected 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(String name, String descriptor, String signature, Label start, Label end, int index) MethodNode.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, 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, String type) Constructors in org.objectweb.asm.tree with parameters of type Label -
Uses of Label in org.objectweb.asm.util
Fields in org.objectweb.asm.util with type parameters of type LabelModifier and TypeFieldDescriptionCheckMethodAdapter.handlersThe exception handler ranges.CheckClassAdapter.labelInsnIndicesThe index of the instruction designated by each visited label so far.CheckMethodAdapter.labelInsnIndicesThe index of the instruction designated by each visited label.ASMifier.labelNamesThe name of the Label variables in the produced code.Textifier.labelNamesThe names of the labels.CheckMethodAdapter.referencedLabelsThe labels referenced by the visited method.Methods in org.objectweb.asm.util with parameters of type LabelModifier and TypeMethodDescriptionprotected 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, 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(String name, String descriptor, String signature, Label start, Label end, int index) voidCheckMethodAdapter.visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index) abstract voidPrinter.visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index) Method debug info.voidTextifier.visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index) voidTraceMethodVisitor.visitLocalVariable(String name, String descriptor, String signature, Label start, Label end, int index) ASMifier.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) CheckMethodAdapter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) Printer.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) Local variable type annotation.Textifier.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) TraceMethodVisitor.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, 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, 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) Method parameters in org.objectweb.asm.util with type arguments of type LabelModifier and TypeMethodDescriptionvoidASMifierSupport.asmify(StringBuilder outputBuilder, String visitorVariableName, Map<Label, String> labelNames) Generates the ASM code to create an attribute equal to this attribute.voidTextifierSupport.textify(StringBuilder outputBuilder, Map<Label, String> labelNames) Generates a human readable representation of this attribute.Constructor parameters in org.objectweb.asm.util with type arguments of type LabelModifierConstructorDescriptionprotectedCheckMethodAdapter(int api, int access, String name, String descriptor, MethodVisitor methodVisitor, Map<Label, Integer> labelInsnIndices) Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(int access, String name, String descriptor, MethodVisitor methodVisitor, Map<Label, Integer> labelInsnIndices) Constructs a newCheckMethodAdapterobject.protectedCheckMethodAdapter(int api, MethodVisitor methodVisitor, Map<Label, Integer> labelInsnIndices) Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(MethodVisitor methodVisitor, Map<Label, Integer> labelInsnIndices) Constructs a newCheckMethodAdapterobject.