All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.ir.instructions.ReceiveRubyExceptionInstr Maven / Gradle / Ivy

package org.jruby.ir.instructions;

import org.jruby.ir.IRVisitor;
import org.jruby.ir.Operation;
import org.jruby.ir.operands.Variable;
import org.jruby.ir.persistence.IRReaderDecoder;
import org.jruby.ir.transformations.inlining.CloneInfo;

public class ReceiveRubyExceptionInstr extends ReceiveExceptionBase {
    public ReceiveRubyExceptionInstr(Variable result) {
        super(Operation.RECV_RUBY_EXC, result);
    }

    @Override
    public Instr clone(CloneInfo ii) {
        return new ReceiveRubyExceptionInstr(ii.getRenamedVariable(result));
    }

    @Override
    public void visit(IRVisitor visitor) {
        visitor.ReceiveRubyExceptionInstr(this);
    }

    public static ReceiveRubyExceptionInstr decode(IRReaderDecoder d) {
        return new ReceiveRubyExceptionInstr(d.decodeVariable());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy