public class StackMachine.GoTo extends java.lang.Object implements StackMachine.Instruction, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
location
Describe variable
location here. |
| Constructor and Description |
|---|
StackMachine.GoTo(int location)
Creates a new
GoTo instance. |
public StackMachine.GoTo(int location)
GoTo instance.location - an int valuepublic int arity()
arity method here.arity in interface StackMachine.Instructionint valuepublic void execute()
execute method here.execute in interface StackMachine.Instructionpublic void write(java.io.PrintStream out)
write method here.write in interface StackMachine.Instructionout - a PrintStream value