org.holtz.zoe.zoel
Class Operation
java.lang.Object
org.holtz.zoe.zoel.Expression
org.holtz.zoe.zoel.Operation
public class Operation
- extends Expression
A fundamental instruction in a Zoel
program.
- Author:
- Brian Holtz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
op
public Operator op
arg
public Expression arg
Operation
public Operation(java.util.Random random,
boolean actionOperatorsAllowed)
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
nthStatement
public ExpressionListCall nthStatement(java.lang.Integer[] nth)
- Overrides:
nthStatement
in class Expression
isFertile
public boolean isFertile()
- Overrides:
isFertile
in class Expression
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