avrora.syntax
Class SyntacticOperand.Expr
java.lang.Object
avrora.syntax.ASTNode
avrora.syntax.SyntacticOperand
avrora.syntax.SyntacticOperand.Expr
- All Implemented Interfaces:
- Operand, Operand.Constant
- Enclosing class:
- SyntacticOperand
- public static class SyntacticOperand.Expr
- extends SyntacticOperand
- implements Operand.Constant
The SyntacticOperand.Expr class represents a constant expression that was specified in the
source assembly as an expression. This expression might be compound and need to be evaluated before its
actual value is known.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
expr
public final Expr expr
SyntacticOperand.Expr
public SyntacticOperand.Expr(Expr e,
boolean b)
asConstant
public Operand.Constant asConstant()
- Description copied from interface:
Operand
- The
asConstant() method uses virtual dispatch to avoid a cast. If this operand is an
instance of Operand.Constant it will return itself. Otherwise, it will return null.
- Specified by:
asConstant in interface Operand- Overrides:
asConstant in class SyntacticOperand
getValue
public int getValue()
- Specified by:
getValue in interface Operand.Constant
getValueAsWord
public int getValueAsWord()
- Specified by:
getValueAsWord in interface Operand.Constant
simplify
public void simplify(int nextByteAddress,
Context c)
- Specified by:
simplify in class SyntacticOperand
toString
public java.lang.String toString()