avrora.syntax
Class SyntacticOperand.Register
java.lang.Object
avrora.syntax.ASTNode
avrora.syntax.SyntacticOperand
avrora.syntax.SyntacticOperand.Register
- All Implemented Interfaces:
- Operand, Operand.Register
- Enclosing class:
- SyntacticOperand
- public static class SyntacticOperand.Register
- extends SyntacticOperand
- implements Operand.Register
The SyntacticOperand.Register class represents a register
operand at the source level. This may be an actual register name (e.g. "r21")
or it could be a symbolic name for a register that has been renamed by
an assembler directive.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public final AbstractToken name
SyntacticOperand.Register
public SyntacticOperand.Register(AbstractToken n)
asRegister
public Operand.Register asRegister()
- Description copied from interface:
Operand
- The
asRegister() method uses virtual dispatch to avoid a
cast. If this operand is an instance of Operand.Register it
will return itself. Otherwise, it will return null.
- Specified by:
asRegister in interface Operand- Overrides:
asRegister in class SyntacticOperand
getRegister
public Register getRegister()
- Specified by:
getRegister in interface Operand.Register
simplify
public void simplify(int currentByteAddress,
Context c)
- Specified by:
simplify in class SyntacticOperand
toString
public java.lang.String toString()