org.holtz.zoe
Class Operation

java.lang.Object
  extended by org.holtz.zoe.Expression
      extended by org.holtz.zoe.Operation

public class Operation
extends Expression

An addressable instruction in a Zoel program.

Author:
Brian Holtz

Field Summary
 Expression arg
           
 Operator op
           
 
Constructor Summary
Operation(Operation operation2Copy)
           
Operation(Operator theOp)
           
Operation(Operator theOp, Expression theArg)
           
Operation(Operator theOp, Operation theArg)
           
Operation(Operator theOp, java.lang.String theArg)
           
Operation(java.util.Random random)
           
 
Method Summary
 Expression copy()
           
static Operation parse(java.lang.String firstWord, ZoelTokenizer zoelTokenizer)
           
static Operation parse(ZoelTokenizer zoelTokenizer)
           
 java.lang.String toString()
           
 java.lang.String toString(int len)
           
 java.lang.String toString(java.lang.String stmtSeparator, Expression currExpr, java.lang.String cursor)
           
 int totalStatements()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

op

public Operator op

arg

public Expression arg
Constructor Detail

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)
Method Detail

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