public class ArbitraryOperandsInstruction extends Instruction
opcode
Constructor and Description |
---|
ArbitraryOperandsInstruction(int opcode,
ArbitraryOperandsInstruction original)
"Copy" construct an ArbitraryOperandsInstruction with a new opcode.
|
ArbitraryOperandsInstruction(int opcode,
Object[] operands)
Construct an ArbitraryOperandsInstruction.
|
Modifier and Type | Method and Description |
---|---|
Object |
getOperand(int index)
Fetch an operand.
|
int |
getOperandCount() |
void |
setOperands(Object[] operands)
Set this instruction's operands in a fixup pass.
|
void |
setTempRegisters(Object[] tempregs)
Set the temporary register operands of a hasnext2 instruction.
|
String |
toString() |
decodeOp, decodeOpcodeName, getImmediate, getOpcode, getTarget, hasOperands, isBranch, isExecutable, isImmediate, isReturn, isTargetableInstruction, isTransferOfControl, setImmediate, setTarget, unsupported
public ArbitraryOperandsInstruction(int opcode, Object[] operands)
opcode
- - the opcode. Passed to superclass constructor.operands
- - the operands. May be null.public ArbitraryOperandsInstruction(int opcode, ArbitraryOperandsInstruction original)
opcode
- - the opcode.original
- - the original ArbitraryOperandsInstruction whose
operands are to be incorporated into the new instruction.public String toString()
toString
in class Instruction
public Object getOperand(int index)
getOperand
in class Instruction
index
- - the index of the operand of interest.public int getOperandCount()
getOperandCount
in class Instruction
public void setOperands(Object[] operands)
setOperands
in class Instruction
operands
- - the instruction's operands.public void setTempRegisters(Object[] tempregs)
setTempRegisters
in class Instruction
Copyright © 2016 The Apache Software Foundation. All rights reserved.