public class org.apache.dubbo.qos.textui.TTree extends java.lang.Object implements org.apache.dubbo.qos.textui.TComponent
{
private static final java.lang.String STEP_FIRST_CHAR;
private static final java.lang.String STEP_NORMAL_CHAR;
private static final java.lang.String STEP_HAS_BOARD;
private static final java.lang.String STEP_EMPTY_BOARD;
private final boolean isPrintCost;
private final org.apache.dubbo.qos.textui.TTree$Node root;
private org.apache.dubbo.qos.textui.TTree$Node current;
public void <init>(boolean, java.lang.String)
{
java.lang.String v;
org.apache.dubbo.qos.textui.TTree$Node v, v, v, v;
boolean v;
org.apache.dubbo.qos.textui.TTree v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v := @parameter: boolean;
v := @parameter: java.lang.String;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new org.apache.dubbo.qos.textui.TTree$Node;
specialinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: void <init>(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: org.apache.dubbo.qos.textui.TTree$Node markBegin()>();
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: org.apache.dubbo.qos.textui.TTree$Node markEnd()>();
v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node root> = v;
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node root>;
v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current> = v;
v.<org.apache.dubbo.qos.textui.TTree: boolean isPrintCost> = v;
return;
}
public java.lang.String rendering()
{
org.apache.dubbo.qos.textui.TTree$1 v;
java.lang.StringBuilder v;
java.lang.String v;
org.apache.dubbo.qos.textui.TTree$Node v;
org.apache.dubbo.qos.textui.TTree v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node root>;
v = new org.apache.dubbo.qos.textui.TTree$1;
specialinvoke v.<org.apache.dubbo.qos.textui.TTree$1: void <init>(org.apache.dubbo.qos.textui.TTree,java.lang.StringBuilder)>(v, v);
specialinvoke v.<org.apache.dubbo.qos.textui.TTree: void recursive(int,boolean,java.lang.String,org.apache.dubbo.qos.textui.TTree$Node,org.apache.dubbo.qos.textui.TTree$Callback)>(0, 1, "", v, v);
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
return v;
}
private void recursive(int, boolean, java.lang.String, org.apache.dubbo.qos.textui.TTree$Node, org.apache.dubbo.qos.textui.TTree$Callback)
{
org.apache.dubbo.qos.textui.TTree$Callback v;
org.apache.dubbo.qos.textui.TTree v;
int v, v, v, v, v;
java.lang.String v, v;
boolean v, v, v, v;
org.apache.dubbo.qos.textui.TTree$Node v;
java.util.List v, v;
java.lang.Object v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v := @parameter: int;
v := @parameter: boolean;
v := @parameter: java.lang.String;
v := @parameter: org.apache.dubbo.qos.textui.TTree$Node;
v := @parameter: org.apache.dubbo.qos.textui.TTree$Callback;
interfaceinvoke v.<org.apache.dubbo.qos.textui.TTree$Callback: void callback(int,boolean,java.lang.String,org.apache.dubbo.qos.textui.TTree$Node)>(v, v, v, v);
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: boolean isLeaf()>();
if v != 0 goto label;
v = v.<org.apache.dubbo.qos.textui.TTree$Node: java.util.List children>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = 0;
label:
if v >= v goto label;
v = v - 1;
if v != v goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = v;
if v == 0 goto label;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u    ");
goto label;
label:
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001|   ");
label:
v = v + 1;
v = v.<org.apache.dubbo.qos.textui.TTree$Node: java.util.List children>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
specialinvoke v.<org.apache.dubbo.qos.textui.TTree: void recursive(int,boolean,java.lang.String,org.apache.dubbo.qos.textui.TTree$Node,org.apache.dubbo.qos.textui.TTree$Callback)>(v, v, v, v, v);
v = v + 1;
goto label;
label:
return;
}
public boolean isTop()
{
org.apache.dubbo.qos.textui.TTree$Node v;
boolean v;
org.apache.dubbo.qos.textui.TTree v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: boolean isRoot()>();
return v;
}
public org.apache.dubbo.qos.textui.TTree begin(java.lang.Object)
{
java.lang.Object v;
org.apache.dubbo.qos.textui.TTree$Node v, v, v;
org.apache.dubbo.qos.textui.TTree v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v := @parameter: java.lang.Object;
v = new org.apache.dubbo.qos.textui.TTree$Node;
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
specialinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: void <init>(org.apache.dubbo.qos.textui.TTree$Node,java.lang.Object)>(v, v);
v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current> = v;
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: org.apache.dubbo.qos.textui.TTree$Node markBegin()>();
return v;
}
public org.apache.dubbo.qos.textui.TTree begin()
{
org.apache.dubbo.qos.textui.TTree v, v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree begin(java.lang.Object)>(null);
return v;
}
public java.lang.Object get()
{
java.lang.IllegalStateException v;
java.lang.Object v;
org.apache.dubbo.qos.textui.TTree$Node v, v;
boolean v;
org.apache.dubbo.qos.textui.TTree v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: boolean isRoot()>();
if v == 0 goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("current node is root.");
throw v;
label:
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
v = v.<org.apache.dubbo.qos.textui.TTree$Node: java.lang.Object data>;
return v;
}
public org.apache.dubbo.qos.textui.TTree set(java.lang.Object)
{
java.lang.IllegalStateException v;
java.lang.Object v;
org.apache.dubbo.qos.textui.TTree$Node v, v;
boolean v;
org.apache.dubbo.qos.textui.TTree v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v := @parameter: java.lang.Object;
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: boolean isRoot()>();
if v == 0 goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("current node is root.");
throw v;
label:
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
v.<org.apache.dubbo.qos.textui.TTree$Node: java.lang.Object data> = v;
return v;
}
public org.apache.dubbo.qos.textui.TTree end()
{
java.lang.IllegalStateException v;
org.apache.dubbo.qos.textui.TTree$Node v, v, v, v;
boolean v;
org.apache.dubbo.qos.textui.TTree v;
v := @this: org.apache.dubbo.qos.textui.TTree;
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
v = virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: boolean isRoot()>();
if v == 0 goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("current node is root.");
throw v;
label:
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
virtualinvoke v.<org.apache.dubbo.qos.textui.TTree$Node: org.apache.dubbo.qos.textui.TTree$Node markEnd()>();
v = v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current>;
v = v.<org.apache.dubbo.qos.textui.TTree$Node: org.apache.dubbo.qos.textui.TTree$Node parent>;
v.<org.apache.dubbo.qos.textui.TTree: org.apache.dubbo.qos.textui.TTree$Node current> = v;
return v;
}
}