public class org.finos.legend.engine.ide.api.execution.test.TestNode extends java.lang.Object implements org.finos.legend.pure.m.tools.tree.TreeNode
{
private final org.finos.legend.pure.m.coreinstance.CoreInstance coreInstance;
private final java.lang.String testParameterizationId;
private final org.eclipse.collections.api.list.MutableList children;
public void <init>(org.finos.legend.pure.m.coreinstance.CoreInstance, java.lang.String)
{
java.lang.String v;
org.eclipse.collections.api.factory.list.MutableListFactory v;
org.finos.legend.pure.m.coreinstance.CoreInstance v;
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.ide.api.execution.test.TestNode v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v := @parameter: org.finos.legend.pure.m.coreinstance.CoreInstance;
v := @parameter: java.lang.String;
specialinvoke v.<java.lang.Object: void <init>()>();
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList empty()>();
v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children> = v;
v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.finos.legend.pure.m.coreinstance.CoreInstance coreInstance> = v;
v.<org.finos.legend.engine.ide.api.execution.test.TestNode: java.lang.String testParameterizationId> = v;
return;
}
public void <init>(org.finos.legend.pure.m.coreinstance.CoreInstance)
{
org.finos.legend.pure.m.coreinstance.CoreInstance v;
org.finos.legend.engine.ide.api.execution.test.TestNode v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v := @parameter: org.finos.legend.pure.m.coreinstance.CoreInstance;
specialinvoke v.<org.finos.legend.engine.ide.api.execution.test.TestNode: void <init>(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String)>(v, null);
return;
}
public org.finos.legend.engine.ide.api.execution.test.TestNode getOrCreateChild(org.finos.legend.pure.m.coreinstance.CoreInstance, java.lang.String)
{
java.util.Iterator v;
org.finos.legend.pure.m.coreinstance.CoreInstance v, v;
org.eclipse.collections.api.list.MutableList v, v;
java.lang.Object v;
java.lang.String v, v;
org.finos.legend.engine.ide.api.execution.test.TestNode v, v;
boolean v, v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v := @parameter: org.finos.legend.pure.m.coreinstance.CoreInstance;
v := @parameter: java.lang.String;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children>;
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.finos.legend.pure.m.coreinstance.CoreInstance coreInstance>;
if v != v goto label;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: java.lang.String testParameterizationId>;
v = staticinvoke <java.util.Objects: boolean equals(java.lang.Object,java.lang.Object)>(v, v);
if v == 0 goto label;
return v;
label:
v = new org.finos.legend.engine.ide.api.execution.test.TestNode;
specialinvoke v.<org.finos.legend.engine.ide.api.execution.test.TestNode: void <init>(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String)>(v, v);
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children>;
interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: boolean add(java.lang.Object)>(v);
return v;
}
public org.eclipse.collections.api.list.MutableList getChildren()
{
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.ide.api.execution.test.TestNode v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children>;
return v;
}
public org.finos.legend.engine.ide.api.execution.test.TestNode getChildAt(int)
{
int v;
java.lang.Object v;
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.ide.api.execution.test.TestNode v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v := @parameter: int;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children>;
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.Object get(int)>(v);
return v;
}
public boolean isLeaf()
{
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.ide.api.execution.test.TestNode v;
boolean v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children>;
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: boolean isEmpty()>();
return v;
}
public int indexOf(org.finos.legend.engine.ide.api.execution.test.TestNode)
{
int v;
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.ide.api.execution.test.TestNode v, v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v := @parameter: org.finos.legend.engine.ide.api.execution.test.TestNode;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children>;
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: int indexOf(java.lang.Object)>(v);
return v;
}
public java.lang.String toString()
{
java.lang.String v;
org.finos.legend.pure.m.coreinstance.CoreInstance v;
org.finos.legend.engine.ide.api.execution.test.TestNode v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.finos.legend.pure.m.coreinstance.CoreInstance coreInstance>;
v = interfaceinvoke v.<org.finos.legend.pure.m.coreinstance.CoreInstance: java.lang.String getName()>();
return v;
}
public java.lang.String toJson(int)
{
org.eclipse.collections.api.list.MutableList v, v, v, v;
org.finos.legend.engine.ide.api.execution.test.TestNode v;
boolean v, v, v;
org.finos.legend.pure.m.ModelRepository v, v;
org.eclipse.collections.api.block.function.Function v;
int v, v, v;
java.lang.String v, v, v, v, v, v, v, v, v, v, v, v;
org.finos.legend.pure.m.coreinstance.SourceInformation v, v, v;
org.finos.legend.pure.m.coreinstance.CoreInstance v, v, v, v;
org.finos.legend.pure.m.navigation.M3ProcessorSupport v, v;
v := @this: org.finos.legend.engine.ide.api.execution.test.TestNode;
v := @parameter: int;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.finos.legend.pure.m.coreinstance.CoreInstance coreInstance>;
v = new org.finos.legend.pure.m.navigation.M3ProcessorSupport;
v = interfaceinvoke v.<org.finos.legend.pure.m.coreinstance.CoreInstance: org.finos.legend.pure.m.ModelRepository getRepository()>();
specialinvoke v.<org.finos.legend.pure.m.navigation.M3ProcessorSupport: void <init>(org.finos.legend.pure.m.ModelRepository)>(v);
v = interfaceinvoke v.<org.finos.legend.pure.m.coreinstance.CoreInstance: org.finos.legend.pure.m.coreinstance.SourceInformation getSourceInformation()>();
if v == null goto label;
v = interfaceinvoke v.<org.finos.legend.pure.m.coreinstance.CoreInstance: org.finos.legend.pure.m.coreinstance.SourceInformation getSourceInformation()>();
goto label;
label:
v = <org.finos.legend.engine.ide.helpers.response.ExceptionTranslation: org.finos.legend.pure.m.coreinstance.SourceInformation DUMMY_SOURCE_INFORMATION>;
label:
v = v;
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: java.lang.String testParameterizationId>;
if v != null goto label;
v = "";
goto label;
label:
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: java.lang.String testParameterizationId>;
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]");
label:
v = v;
v = staticinvoke <org.finos.legend.pure.m.navigation.Instance: boolean instanceOf(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String,org.finos.legend.pure.m.navigation.ProcessorSupport)>(v, "meta::pure::metamodel::function::Function", v);
if v == 0 goto label;
v = staticinvoke <org.finos.legend.pure.m.navigation.Instance: org.finos.legend.pure.m.coreinstance.CoreInstance getValueForMetaPropertyToOneResolved(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String,org.finos.legend.pure.m.navigation.ProcessorSupport)>(v, "functionName", v);
v = interfaceinvoke v.<org.finos.legend.pure.m.coreinstance.CoreInstance: java.lang.String getName()>();
goto label;
label:
v = staticinvoke <org.finos.legend.pure.m.navigation.Instance: org.finos.legend.pure.m.coreinstance.CoreInstance getValueForMetaPropertyToOneResolved(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String,org.finos.legend.pure.m.navigation.ProcessorSupport)>(v, "name", v);
v = interfaceinvoke v.<org.finos.legend.pure.m.coreinstance.CoreInstance: java.lang.String getName()>();
label:
v = v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList children>;
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: boolean isEmpty()>();
if v == 0 goto label;
v = ", \"type\":\"notRan\"";
goto label;
label:
v = "";
label:
v = virtualinvoke v.<org.finos.legend.pure.m.coreinstance.SourceInformation: java.lang.String getSourceId()>();
v = virtualinvoke v.<org.finos.legend.pure.m.coreinstance.SourceInformation: int getLine()>();
v = virtualinvoke v.<org.finos.legend.pure.m.coreinstance.SourceInformation: int getColumn()>();
v = new org.finos.legend.pure.m.navigation.M3ProcessorSupport;
v = interfaceinvoke v.<org.finos.legend.pure.m.coreinstance.CoreInstance: org.finos.legend.pure.m.ModelRepository getRepository()>();
specialinvoke v.<org.finos.legend.pure.m.navigation.M3ProcessorSupport: void <init>(org.finos.legend.pure.m.ModelRepository)>(v);
v = staticinvoke <org.finos.legend.pure.m.navigation.Instance: org.finos.legend.pure.m.coreinstance.CoreInstance getValueForMetaPropertyToOneResolved(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String,org.finos.legend.pure.m.navigation.ProcessorSupport)>(v, "package", v);
v = staticinvoke <org.finos.legend.pure.m.navigation.PackageableElement.PackageableElement: java.lang.String getUserPathForPackageableElement(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String)>(v, "_");
v = staticinvoke <org.finos.legend.pure.m.navigation.PackageableElement.PackageableElement: java.lang.String getUserPathForPackageableElement(org.finos.legend.pure.m.coreinstance.CoreInstance,java.lang.String)>(v, "_");
v = virtualinvoke v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList getChildren()>();
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: boolean isEmpty()>();
if v == 0 goto label;
v = "";
goto label;
label:
v = virtualinvoke v.<org.finos.legend.engine.ide.api.execution.test.TestNode: org.eclipse.collections.api.list.MutableList getChildren()>();
v = staticinvoke <org.finos.legend.engine.ide.api.execution.test.TestNode$lambda_toJson_1c188d4f_1__120: org.eclipse.collections.api.block.function.Function bootstrap$(int)>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList collect(org.eclipse.collections.api.block.function.Function)>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.String makeString()>();
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[])>(",\"children\":[\u]");
label:
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,int,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)>(v, v, v, v, v, v, v, v, v, v, 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[])>("{\"text\":\"\u0001\u0001\"\u,\"li_attr\" : {\"file\":\"\u0001\",\"line\":\"\u0001\",\"column\":\"\u0001\",\"parentId\":\"\u0001\", \"id\":\"test\u0001_\u0001\u0001\"}\u0001}");
return v;
}
}