Top Description Fields Constructors Methods
org.jruby.ir.instructions

public abstract Class TwoOperandInstr

extends Instr
Class Inheritance
Known Direct Subclasses
org.jruby.ir.instructions.AliasInstr, org.jruby.ir.instructions.GVarAliasInstr, org.jruby.ir.instructions.ModuleVersionGuardInstr, org.jruby.ir.instructions.PutGlobalVarInstr, org.jruby.ir.instructions.PutInstr, org.jruby.ir.instructions.StoreLocalVarInstr
Imports
org.jruby.ir.Operation, org.jruby.ir.operands.Operand

Instr for two operands.

Field Summary

Modifier and TypeField and Description
private Operand
private Operand
Inherited from org.jruby.ir.instructions.Instr:
EMPTY_OPERANDS

Constructor Summary

AccessConstructor and Description
public
TwoOperandInstr(Operation operation, Operand operand1, Operand operand2)

Method Summary

Modifier and TypeMethod and Description
public Operand
public Operand
public Operand[]
public void
public void
setOperand1(Operand operand1)

public void
setOperand2(Operand operand2)

Inherited from org.jruby.ir.instructions.Instr:
canBeDeletedFromScopecanRaiseExceptionclonecloneOperandscomputeScopeFlagsdumpableFieldsencodegetOperationgetUsedVariableshasSideEffectsinterpretinterpretAndGetNewIPCisDeadisDeletablemarkDeadrenameVarssimplifyInstrsimplifyOperandssimplifyOperandstoStringtoStringNonOperandArgstransfersControlvisit

Field Detail

operand1back to summary
private Operand operand1
operand2back to summary
private Operand operand2

Constructor Detail

TwoOperandInstrback to summary
public TwoOperandInstr(Operation operation, Operand operand1, Operand operand2)

Method Detail

getOperand1back to summary
public Operand getOperand1()
getOperand2back to summary
public Operand getOperand2()
getOperandsback to summary
public Operand[] getOperands()

Implements abstract org.jruby.ir.instructions.Instr.getOperands.

setOperandback to summary
public void setOperand(int i, Operand operand)

Implements abstract org.jruby.ir.instructions.Instr.setOperand.

setOperand1back to summary
public void setOperand1(Operand operand1)
setOperand2back to summary
public void setOperand2(Operand operand2)