Package mars.assembler.extended
Class OperandSubstitution
java.lang.Object
mars.assembler.extended.OperandSubstitution
- All Implemented Interfaces:
TemplateOperand
-
Constructor Summary
ConstructorsConstructorDescriptionOperandSubstitution
(int operandIndex, List<OperandModifier> modifiers, OperandType originalType) -
Method Summary
Modifier and TypeMethodDescriptionapplyModifiers
(Operand operand, int address) int
getType()
withType
(OperandType type)
-
Constructor Details
-
OperandSubstitution
public OperandSubstitution(int operandIndex, List<OperandModifier> modifiers, OperandType originalType)
-
-
Method Details
-
getOperandIndex
public int getOperandIndex() -
getModifiers
-
getType
- Specified by:
getType
in interfaceTemplateOperand
-
withType
- Specified by:
withType
in interfaceTemplateOperand
-
applyModifiers
-
resolve
- Specified by:
resolve
in interfaceTemplateOperand
-