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

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

There is a newer version: 9.4.9.0
Show newest version
package org.jruby.compiler.ir.instructions;

import java.util.Map;

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

/**
 * This is of the form:
 *  v = OP(arg, attribute_array); Ex: v = NOT(v1)
 */
public abstract class NoOperandInstr extends Instr {
    public NoOperandInstr(Operation op, Variable dest) {
        super(op, dest);
    }

    public NoOperandInstr(Operation op) {
        super(op);
    }

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

    public void simplifyOperands(Map valueMap) {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy