|
com.rychlik.calculator
Class StackMachine.GoTo
java.lang.Object
|
+--com.rychlik.calculator.StackMachine.GoTo
- All Implemented Interfaces:
- java.io.Serializable, StackMachine.Instruction
- Enclosing class:
- StackMachine
- public class StackMachine.GoTo
- extends java.lang.Object
- implements StackMachine.Instruction, java.io.Serializable
Goto
- See Also:
- Serialized Form
Field Summary |
int |
location
Describe variable location 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
location
public final int location
- Describe variable
location here.
StackMachine.GoTo
public StackMachine.GoTo(int location)
- Creates a new
GoTo instance.
- Parameters:
location - an int value
arity
public int arity()
- Describe
arity method here.
- Specified by:
arity in interface StackMachine.Instruction
- Returns:
- an
int value
execute
public void execute()
- Describe
execute method here.
- Specified by:
execute in interface StackMachine.Instruction
write
public void write(java.io.PrintStream out)
- Describe
write method here.
- Specified by:
write in interface StackMachine.Instruction
- Parameters:
out - a PrintStream value
|