|
com.rychlik.calculator
Interface StackMachine.Instruction
- All Known Implementing Classes:
- StackMachine.Assign, StackMachine.Branch, StackMachine.Call, StackMachine.DumpStack, StackMachine.GoTo, StackMachine.MathFunction, StackMachine.Pop, StackMachine.PopPrint, StackMachine.Print, StackMachine.PushAddress, StackMachine.PushConstant, StackMachine.PushVariable, StackMachine.Return, StackMachine.Stop
- Enclosing interface:
- 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. |
execute
public void execute()
throws ParseException
- Describe
execute method here.
- Throws:
ParseException - if an error occurs
arity
public int arity()
- Describe
arity method here.
- Returns:
- an
int value
write
public void write(java.io.PrintStream out)
- Describe
write method here.
- Parameters:
out - a PrintStream value
|