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 Label
MethodWriter. currentBasicBlock
The current basic block, i.e.(package private) Label[]
Context. currentLocalVariableAnnotationRangeEnds
The end of each local variable range in the current local variable annotation.(package private) Label[]
Context. currentLocalVariableAnnotationRangeStarts
The start of each local variable range in the current local variable annotation.(package private) Label[]
Context. currentMethodLabels
The 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 Label
Label. EMPTY_LIST
A sentinel element used to indicate the end of a list of labels.(package private) Label
Handler. endPc
The end_pc field of this JVMS exception_table entry.private Label
MethodWriter. firstBasicBlock
The first basic block of the method.(package private) Label
Handler. handlerPc
The handler_pc field of this JVMS exception_table entry.private Label
MethodWriter. lastBasicBlock
The last basic block of the method (in bytecode offset order).(package private) Label
Label. nextBasicBlock
The successor of this label, in the order they are visited inMethodVisitor.visitLabel(org.objectweb.asm.Label)
.(package private) Label
Label. nextListElement
The next element in the list of labels to which this label belongs, or null if it does not belong to any list.(package private) Label
Frame. owner
The basic block to which these input and output stack map frames correspond.(package private) Label
Handler. startPc
The start_pc field of this JVMS exception_table entry.(package private) Label
Edge. successor
The successor block of this control flow graph edge.Methods in org.objectweb.asm that return Label Modifier and Type Method Description private Label
ClassReader. createLabel(int bytecodeOffset, Label[] labels)
Creates a label without theFLAG_DEBUG_ONLY
flag set, for the given bytecode offset.(package private) Label
Label. getCanonicalInstance()
Returns the "canonical"Label
instance 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 Label
Label. 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 Label
ClassReader. 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) void
Label. 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 void
MethodWriter. addSuccessorToCurrentBasicBlock(int info, Label successor)
Adds a successor toMethodWriter.currentBasicBlock
in the control flow graph.private void
ClassReader. createDebugLabel(int bytecodeOffset, Label[] labels)
Creates a label with theFLAG_DEBUG_ONLY
flag set, if there is no already existing label for the given bytecode offset (otherwise does nothing).private Label
ClassReader. createLabel(int bytecodeOffset, Label[] labels)
Creates a label without theFLAG_DEBUG_ONLY
flag set, for the given bytecode offset.private Label
Label. 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 Attribute
Attribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeAttributeOffset, Label[] labels)
Reads aAttribute.type
attribute.private Attribute
ClassReader. 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 Label
ClassReader. readLabel(int bytecodeOffset, Label[] labels)
Returns the label corresponding to the given bytecode offset.private int
ClassReader. 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 Handler
Handler. removeRange(Handler firstHandler, Label start, Label end)
Removes the range between start and end from the Handler list that begins with the given element.void
MethodVisitor. visitJumpInsn(int opcode, Label label)
Visits a jump instruction.void
MethodWriter. visitJumpInsn(int opcode, Label label)
void
MethodVisitor. visitLabel(Label label)
Visits a label.void
MethodWriter. visitLabel(Label label)
void
MethodVisitor. visitLineNumber(int line, Label start)
Visits a line number declaration.void
MethodWriter. visitLineNumber(int line, Label start)
void
MethodVisitor. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
Visits a local variable declaration.void
MethodWriter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
AnnotationVisitor
MethodVisitor. 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.AnnotationVisitor
MethodWriter. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
void
MethodVisitor. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
Visits a LOOKUPSWITCH instruction.void
MethodWriter. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
private void
MethodWriter. visitSwitchInsn(Label dflt, Label[] labels)
void
MethodVisitor. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
Visits a TABLESWITCH instruction.void
MethodWriter. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
MethodVisitor. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)
Visits a try catch block.void
MethodWriter. 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. forwardJumpStackFrames
The 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. labels
The labels that designate the next instruction to be visited.Methods in org.objectweb.asm.commons that return Label Modifier and Type Method Description Label
GeneratorAdapter. mark()
Marks the current code position with a new label.Label
GeneratorAdapter. newLabel()
Constructs a newLabel
.Methods in org.objectweb.asm.commons with parameters of type Label Modifier and Type Method Description private void
AdviceAdapter. addForwardJump(Label label)
private void
AdviceAdapter. addForwardJumps(Label dflt, Label[] labels)
void
GeneratorAdapter. catchException(Label start, Label end, Type exception)
Marks the start of an exception handler.void
TableSwitchGenerator. generateCase(int key, Label end)
Generates the code for a switch case.void
GeneratorAdapter. goTo(Label label)
Generates the instruction to jump to the given label.void
InstructionAdapter. goTo(Label label)
void
InstructionAdapter. ifacmpeq(Label label)
void
InstructionAdapter. ifacmpne(Label label)
void
GeneratorAdapter. 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.void
InstructionAdapter. ifeq(Label label)
void
InstructionAdapter. ifge(Label label)
void
InstructionAdapter. ifgt(Label label)
void
GeneratorAdapter. ifICmp(int mode, Label label)
Generates the instructions to jump to a label based on the comparison of the top two integer stack values.void
InstructionAdapter. ificmpeq(Label label)
void
InstructionAdapter. ificmpge(Label label)
void
InstructionAdapter. ificmpgt(Label label)
void
InstructionAdapter. ificmple(Label label)
void
InstructionAdapter. ificmplt(Label label)
void
InstructionAdapter. ificmpne(Label label)
void
InstructionAdapter. ifle(Label label)
void
InstructionAdapter. iflt(Label label)
void
InstructionAdapter. ifne(Label label)
void
InstructionAdapter. ifnonnull(Label label)
void
GeneratorAdapter. ifNonNull(Label label)
Generates the instruction to jump to the given label if the top stack value is not null.void
InstructionAdapter. ifnull(Label label)
void
GeneratorAdapter. ifNull(Label label)
Generates the instruction to jump to the given label if the top stack value is null.void
GeneratorAdapter. 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.void
InstructionAdapter. jsr(Label label)
void
InstructionAdapter. lookupswitch(Label dflt, int[] keys, Label[] labels)
void
GeneratorAdapter. mark(Label label)
Marks the current code position with the given label.void
InstructionAdapter. mark(Label label)
protected Attribute
ModuleHashesAttribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeAttributeOffset, Label[] labels)
protected Attribute
ModuleResolutionAttribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, Label[] labels)
protected Attribute
ModuleTargetAttribute. read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, Label[] labels)
void
InstructionAdapter. tableswitch(int min, int max, Label dflt, Label... labels)
void
AdviceAdapter. visitJumpInsn(int opcode, Label label)
void
AnalyzerAdapter. visitJumpInsn(int opcode, Label label)
void
CodeSizeEvaluator. visitJumpInsn(int opcode, Label label)
void
InstructionAdapter. visitJumpInsn(int opcode, Label label)
void
JSRInlinerAdapter. visitJumpInsn(int opcode, Label label)
void
AdviceAdapter. visitLabel(Label label)
void
AnalyzerAdapter. visitLabel(Label label)
void
InstructionAdapter. visitLabel(Label label)
void
AnalyzerAdapter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
void
LocalVariablesSorter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
void
MethodRemapper. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
AnnotationVisitor
LocalVariablesSorter. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
AnnotationVisitor
MethodRemapper. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
void
AdviceAdapter. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
AnalyzerAdapter. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
CodeSizeEvaluator. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
InstructionAdapter. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
AdviceAdapter. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
AnalyzerAdapter. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
CodeSizeEvaluator. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
InstructionAdapter. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
AdviceAdapter. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)
void
MethodRemapper. 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 Label
LabelNode. value
Methods in org.objectweb.asm.tree that return Label Modifier and Type Method Description Label
LabelNode. 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 LabelNode
MethodNode. getLabelNode(Label label)
Returns the LabelNode corresponding to the given Label.private LabelNode[]
MethodNode. getLabelNodes(Label[] labels)
void
MethodNode. visitJumpInsn(int opcode, Label label)
void
MethodNode. visitLabel(Label label)
void
MethodNode. visitLineNumber(int line, Label start)
void
MethodNode. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
AnnotationVisitor
MethodNode. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
void
MethodNode. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
MethodNode. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
MethodNode. 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. handlers
The exception handler ranges.private java.util.Map<Label,java.lang.Integer>
CheckClassAdapter. labelInsnIndices
The index of the instruction designated by each visited label so far.private java.util.Map<Label,java.lang.Integer>
CheckMethodAdapter. labelInsnIndices
The index of the instruction designated by each visited label.protected java.util.Map<Label,java.lang.String>
ASMifier. labelNames
The name of the Label variables in the produced code.protected java.util.Map<Label,java.lang.String>
Textifier. labelNames
The names of the labels.private java.util.Set<Label>
CheckMethodAdapter. referencedLabels
The labels referenced by the visited method.Methods in org.objectweb.asm.util with parameters of type Label Modifier and Type Method Description protected void
ASMifier. appendLabel(Label label)
Appends the name of the given label toPrinter.stringBuilder
.protected void
Textifier. appendLabel(Label label)
Appends the name of the given label toPrinter.stringBuilder
.private void
CheckMethodAdapter. checkLabel(Label label, boolean checkVisited, java.lang.String message)
Checks that the given label is not null.protected void
ASMifier. declareLabel(Label label)
Appends a declaration of the given label toPrinter.stringBuilder
.void
ASMifier. visitJumpInsn(int opcode, Label label)
void
CheckMethodAdapter. visitJumpInsn(int opcode, Label label)
abstract void
Printer. visitJumpInsn(int opcode, Label label)
Method jump instruction.void
Textifier. visitJumpInsn(int opcode, Label label)
void
TraceMethodVisitor. visitJumpInsn(int opcode, Label label)
void
ASMifier. visitLabel(Label label)
void
CheckMethodAdapter. visitLabel(Label label)
abstract void
Printer. visitLabel(Label label)
Method label.void
Textifier. visitLabel(Label label)
void
TraceMethodVisitor. visitLabel(Label label)
void
ASMifier. visitLineNumber(int line, Label start)
void
CheckMethodAdapter. visitLineNumber(int line, Label start)
abstract void
Printer. visitLineNumber(int line, Label start)
Method debug info.void
Textifier. visitLineNumber(int line, Label start)
void
TraceMethodVisitor. visitLineNumber(int line, Label start)
void
ASMifier. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
void
CheckMethodAdapter. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
abstract void
Printer. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
Method debug info.void
Textifier. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
void
TraceMethodVisitor. visitLocalVariable(java.lang.String name, java.lang.String descriptor, java.lang.String signature, Label start, Label end, int index)
Printer
ASMifier. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
AnnotationVisitor
CheckMethodAdapter. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
Printer
Printer. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
Local variable type annotation.Printer
Textifier. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
AnnotationVisitor
TraceMethodVisitor. visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, java.lang.String descriptor, boolean visible)
void
ASMifier. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
CheckMethodAdapter. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
abstract void
Printer. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
Method instruction.void
Textifier. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
TraceMethodVisitor. visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
void
ASMifier. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
CheckMethodAdapter. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
abstract void
Printer. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
Method instruction.void
Textifier. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
TraceMethodVisitor. visitTableSwitchInsn(int min, int max, Label dflt, Label... labels)
void
ASMifier. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)
void
CheckMethodAdapter. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)
abstract void
Printer. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)
Method exception handler.void
Textifier. visitTryCatchBlock(Label start, Label end, Label handler, java.lang.String type)
void
TraceMethodVisitor. 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 void
ASMifierSupport. 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.void
TextifierSupport. 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 newCheckMethodAdapter
object.CheckMethodAdapter(int access, java.lang.String name, java.lang.String descriptor, MethodVisitor methodVisitor, java.util.Map<Label,java.lang.Integer> labelInsnIndices)
Constructs a newCheckMethodAdapter
object.CheckMethodAdapter(int api, MethodVisitor methodVisitor, java.util.Map<Label,java.lang.Integer> labelInsnIndices)
Constructs a newCheckMethodAdapter
object.CheckMethodAdapter(MethodVisitor methodVisitor, java.util.Map<Label,java.lang.Integer> labelInsnIndices)
Constructs a newCheckMethodAdapter
object.
-