Package jminusminus
Class CLArithmeticInstruction
java.lang.Object
jminusminus.CLInstruction
jminusminus.CLArithmeticInstruction
Representation for ARITHMETIC1 and ARITHMETIC2 instructions.
- 
Field SummaryFields inherited from class jminusminus.CLInstructioninstructionInfo, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
- 
Constructor SummaryConstructorsConstructorDescriptionCLArithmeticInstruction(int opcode, int pc) Constructs a CLArithmeticInstruction object for ARITHMETIC1 instructions.CLArithmeticInstruction(int opcode, int pc, int localVariableIndex, int constVal, boolean isWidened) Constructs a CLArithmeticInstruction object for IINC instruction.
- 
Method SummaryMethods inherited from class jminusminus.CLInstructionbyteAt, isValid, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
- 
Constructor Details- 
CLArithmeticInstructionpublic CLArithmeticInstruction(int opcode, int pc) Constructs a CLArithmeticInstruction object for ARITHMETIC1 instructions.- Parameters:
- opcode- the opcode for this instruction.
- pc- index of this instruction within the code array of a method.
 
- 
CLArithmeticInstructionpublic CLArithmeticInstruction(int opcode, int pc, int localVariableIndex, int constVal, boolean isWidened) Constructs a CLArithmeticInstruction object for IINC instruction.- Parameters:
- opcode- the opcode for this instruction.
- pc- index of this instruction within the code array of a method.
- localVariableIndex- index of the local variable to increment.
- constVal- increment value.
- isWidened- whether this instruction is preceeded by the WIDE (widening) instruction.
 
 
- 
- 
Method Details- 
toBytesReturns the bytecode for this instruction.- Specified by:
- toBytesin class- CLInstruction
- Returns:
- the bytecode for this instruction.
 
 
-