Class IfRefsEqual
java.lang.Object
org.curioswitch.common.protobuf.json.bytebuddy.IfRefsEqual
- All Implemented Interfaces:
net.bytebuddy.implementation.bytecode.StackManipulation
public final class IfRefsEqual
extends Object
implements net.bytebuddy.implementation.bytecode.StackManipulation
StackManipulation which jumps to a destination if the two references on the execution
stack are equal.
Used for if-statements like:
{code
if (obj1 != obj2) {
...
}
// destination
}-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
net.bytebuddy.implementation.bytecode.StackManipulation.AbstractBase, net.bytebuddy.implementation.bytecode.StackManipulation.Compound, net.bytebuddy.implementation.bytecode.StackManipulation.Illegal, net.bytebuddy.implementation.bytecode.StackManipulation.Simple, net.bytebuddy.implementation.bytecode.StackManipulation.Size, net.bytebuddy.implementation.bytecode.StackManipulation.Trivial -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IfRefsEqual
public IfRefsEqual(net.bytebuddy.jar.asm.Label destination)
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValidin interfacenet.bytebuddy.implementation.bytecode.StackManipulation
-
apply
public net.bytebuddy.implementation.bytecode.StackManipulation.Size apply(net.bytebuddy.jar.asm.MethodVisitor methodVisitor, net.bytebuddy.implementation.Implementation.Context implementationContext) - Specified by:
applyin interfacenet.bytebuddy.implementation.bytecode.StackManipulation
-