public abstract class org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough extends java.lang.Object
{
protected final org.finos.legend.engine.repl.client.Client client;
private int currentStep;
public void <init>(org.finos.legend.engine.repl.client.Client)
{
org.finos.legend.engine.repl.client.Client v;
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
v := @parameter: org.finos.legend.engine.repl.client.Client;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep> = 0;
v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: org.finos.legend.engine.repl.client.Client client> = v;
return;
}
protected abstract void beforeStep();
protected abstract void afterStep();
protected abstract org.eclipse.collections.api.list.MutableList getSteps();
public int getCurrentStep()
{
int v;
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
v = v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep>;
return v;
}
public int getStepCount()
{
int v;
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
v = virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: org.eclipse.collections.api.list.MutableList getSteps()>();
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: int size()>();
return v;
}
private void run(int)
{
int v;
java.lang.Object v;
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
v := @parameter: int;
v = virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: org.eclipse.collections.api.list.MutableList getSteps()>();
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.Object get(int)>(v);
interfaceinvoke v.<org.eclipse.collections.api.block.function.Function0: java.lang.Object value()>();
return;
}
public void current()
{
int v;
java.lang.RuntimeException v;
org.finos.legend.engine.repl.client.Client v;
java.lang.Exception v;
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
label:
virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: void beforeStep()>();
label:
goto label;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
v = v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: org.finos.legend.engine.repl.client.Client client>;
virtualinvoke v.<org.finos.legend.engine.repl.client.Client: void clearScreen()>();
v = v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep>;
specialinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: void run(int)>(v);
virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: void afterStep()>();
return;
catch java.lang.Exception from label to label with label;
}
public void next()
{
int v, v, v, v;
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
v = v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep>;
v = v + 1;
v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep> = v;
v = v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep>;
v = virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int getStepCount()>();
if v < v goto label;
v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep> = 0;
label:
virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: void current()>();
return;
}
public void prev()
{
int v, v, v;
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
v = v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep>;
v = v - 1;
v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep> = v;
v = v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep>;
if v >= 0 goto label;
v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep> = 0;
label:
virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: void current()>();
return;
}
public void restart()
{
org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough v;
v := @this: org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough;
v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: int currentStep> = 0;
virtualinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: void current()>();
return;
}
}