Skip to content

Instantly share code, notes, and snippets.

@bsideup
Last active December 19, 2015 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsideup/5916280 to your computer and use it in GitHub Desktop.
Save bsideup/5916280 to your computer and use it in GitHub Desktop.
package ml;
class Test extends A {
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var deep__b3:deep.B;
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var deep__b4:deep.B;
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var innerChildOfB4:deep.B;
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var deep__b2:deep.B;
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var deep__b1:deep.B;
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var deep__b0:deep.B;
/**
autogenerated NodeScope field TInst(deep.B,[])
**/
public var myB:deep.B;
/**
autogenerated NodeScope field TInst(String,[])
**/
public var myString:String;
/**
autogenerated constructor
**/
public function new() {
super();
myString="Hello again!";
this.anotherInnerString=myString;
this.children=[init_myB(),init_deep__b0(),init_deep__b1(),init_deep__b2(),init_deep__b4()];
this.aString="1";
this.innerString="Hello!";
}
/**
autogenerated NodeScope init function
**/
private function init_myB() {
if(myB!=null) return myB ;
myB=new deep.B();
myB.prop="asValue";
myB.test=Std.parseFloat("1");
return myB;
}
/**
autogenerated NodeScope init function
**/
private function init_deep__b0() {
if(deep__b0!=null) return deep__b0 ;
deep__b0=new deep.B();
deep__b0.test=Std.parseFloat("2");
return deep__b0;
}
/**
autogenerated NodeScope init function
**/
private function init_deep__b1() {
if(deep__b1!=null) return deep__b1 ;
deep__b1=new deep.B();
deep__b1.test=Std.parseFloat("3");
return deep__b1;
}
/**
autogenerated NodeScope init function
**/
private function init_innerChildOfB4() {
if(innerChildOfB4!=null) return innerChildOfB4 ;
innerChildOfB4=new deep.B();
innerChildOfB4.test=Std.parseFloat("41");
return innerChildOfB4;
}
/**
autogenerated NodeScope init function
**/
private function init_deep__b2() {
if(deep__b2!=null) return deep__b2 ;
deep__b2=new deep.B();
deep__b2.test=Std.parseFloat("4");
deep__b2.arrayOfB=[init_innerChildOfB4()];
return deep__b2;
}
/**
autogenerated NodeScope init function
**/
private function init_deep__b3() {
if(deep__b3!=null) return deep__b3 ;
deep__b3=new deep.B();
deep__b3.test=Std.parseFloat("51");
return deep__b3;
}
/**
autogenerated NodeScope init function
**/
private function init_deep__b4() {
if(deep__b4!=null) return deep__b4 ;
deep__b4=new deep.B();
deep__b4.test=Std.parseFloat("5");
deep__b4.arrayOfB=[init_deep__b3()];
return deep__b4;
}
}
<?xml version="1.0" encoding="utf-8" ?>
<ans:A ans:aString="1" xmlns:ans="*" xmlns:deep="deep.*" >
<deep:B id="myB" test="1" prop="asValue"/>
<deep:B test="2" />
<deep:B test="3" />
<deep:B test="4">
<deep:arrayOfB>
<Array>
<deep:B id="innerChildOfB4" test="41"/>
</Array>
</deep:arrayOfB>
</deep:B>
<deep:B test="5">
<deep:B test="51" />
</deep:B>
<ans:innerString>Hello!</ans:innerString>
<ans:anotherInnerString>
<String id="myString">Hello again!</String>
</ans:anotherInnerString>
</ans:A>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment