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.Instruction
int
valuepublic void execute()
execute
method here.execute
in interface StackMachine.Instruction
public void write(java.io.PrintStream out)
write
method here.write
in interface StackMachine.Instruction
out
- a PrintStream
value