com.rychlik.calculator
Interface StackMachine.Instruction

All Known Implementing Classes:
StackMachine.Abs, StackMachine.Add, StackMachine.And, StackMachine.Asin, StackMachine.Assign, StackMachine.Atan, StackMachine.BinaryMathFunction, StackMachine.Branch, StackMachine.Call, StackMachine.Cos, StackMachine.Div, StackMachine.DumpStack, StackMachine.Eq, StackMachine.Exp, StackMachine.Ge, StackMachine.GoTo, StackMachine.Gt, StackMachine.If, StackMachine.Le, StackMachine.Ln, StackMachine.Lt, StackMachine.MathFunction, StackMachine.Max, StackMachine.Min, StackMachine.Mul, StackMachine.Ne, StackMachine.Negate, StackMachine.Or, StackMachine.Pop, StackMachine.PopPrint, StackMachine.Pow, StackMachine.Print, StackMachine.PushAddress, StackMachine.PushConstant, StackMachine.PushVariable, StackMachine.Return, StackMachine.Sgn, StackMachine.Sin, StackMachine.Sqrt, StackMachine.Step, StackMachine.Stop, StackMachine.Sub, StackMachine.Tan, StackMachine.TernaryMathFunction, StackMachine.UnaryMathFunction
Enclosing class:
StackMachine

public static interface StackMachine.Instruction

Describe interface Instruction here.


Method Summary
 int arity()
          Describe arity method here.
 void execute()
          Describe execute method here.
 void write(java.io.PrintStream out)
          Describe write method here.
 

Method Detail

execute

void execute()
             throws ParseException
Describe execute method here.

Throws:
ParseException - if an error occurs

arity

int arity()
Describe arity method here.

Returns:
an int value

write

void write(java.io.PrintStream out)
Describe write method here.

Parameters:
out - a PrintStream value