Package net.bytebuddy.asm
Class Advice.Dispatcher.RelocationHandler.Relocation.ForLabel
java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.Relocation.ForLabel
- All Implemented Interfaces:
Advice.Dispatcher.RelocationHandler.Relocation
- Enclosing interface:
- Advice.Dispatcher.RelocationHandler.Relocation
@Enhance
public static class Advice.Dispatcher.RelocationHandler.Relocation.ForLabel
extends Object
implements Advice.Dispatcher.RelocationHandler.Relocation
A relocation that unconditionally jumps to a given label.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.Relocation
Advice.Dispatcher.RelocationHandler.Relocation.ForLabel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.objectweb.asm.Label
The label to jump to. -
Constructor Summary
ConstructorsConstructorDescriptionForLabel
(org.objectweb.asm.Label label) Creates a new relocation for an unconditional jump to a given label. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.objectweb.asm.MethodVisitor methodVisitor) Applies this relocator.
-
Field Details
-
label
private final org.objectweb.asm.Label labelThe label to jump to.
-
-
Constructor Details
-
ForLabel
public ForLabel(org.objectweb.asm.Label label) Creates a new relocation for an unconditional jump to a given label.- Parameters:
label
- The label to jump to.
-
-
Method Details
-
apply
public void apply(org.objectweb.asm.MethodVisitor methodVisitor) Applies this relocator.- Specified by:
apply
in interfaceAdvice.Dispatcher.RelocationHandler.Relocation
- Parameters:
methodVisitor
- The method visitor to use.
-