org.holtz.zoe
Class Operation
java.lang.Object
org.holtz.zoe.Expression
org.holtz.zoe.Operation
public class Operation
- extends Expression
An addressable instruction in a Zoel
program.
- Author:
- Brian Holtz
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
op
public Operator op
arg
public Expression arg
Operation
public Operation(java.util.Random random)
Operation
public Operation(Operation operation2Copy)
Operation
public Operation(Operator theOp)
Operation
public Operation(Operator theOp,
Operation theArg)
Operation
public Operation(Operator theOp,
Expression theArg)
Operation
public Operation(Operator theOp,
java.lang.String theArg)
copy
public Expression copy()
- Specified by:
copy
in class Expression
totalStatements
public int totalStatements()
- Overrides:
totalStatements
in class Expression
toString
public java.lang.String toString(int len)
toString
public java.lang.String toString()
- Specified by:
toString
in class Expression
toString
public java.lang.String toString(java.lang.String stmtSeparator,
Expression currExpr,
java.lang.String cursor)
- Specified by:
toString
in class Expression
parse
public static Operation parse(java.lang.String firstWord,
ZoelTokenizer zoelTokenizer)
throws java.lang.Exception
- Throws:
java.lang.Exception
parse
public static Operation parse(ZoelTokenizer zoelTokenizer)
throws java.lang.Exception
- Throws:
java.lang.Exception