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

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

package org.jruby.ir.instructions;

import org.jruby.ir.Operation;
import org.jruby.ir.operands.Operand;

/**
 * An instr with no Operands
 */
public abstract class NoOperandInstr extends Instr {
    public NoOperandInstr(Operation operation) {
        super(operation);
    }

    public Operand[] getOperands() {
        return Instr.EMPTY_OPERANDS;
    }

    public void setOperand(int i, Operand operand) {
        throw new IllegalArgumentException("Setting operand on no-operand instr");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy