Skip to content

Instantly share code, notes, and snippets.

@bsideup
Last active December 18, 2015 19:49
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/5835772 to your computer and use it in GitHub Desktop.
Save bsideup/5835772 to your computer and use it in GitHub Desktop.
package ml;
class Test extends A {
/**
autogenerated constructor
**/
public function new() {
super();
myString="Hello again!";
this.anotherInnerString=myString;
this.aString="1";
this.innerString="Hello!";
this.myB=init_myB();
}
/**
autogenerated NodeScope field
**/
public var myString:String;
/**
autogenerated NodeScope field
**/
public var myB:deep.B;
/**
autogenerated NodeScope field
**/
public var deep__b0:deep.B;
/**
autogenerated NodeScope field
**/
public var deep__b1:deep.B;
/**
autogenerated NodeScope init function
**/
private function init_deep__b1() {
if(deep__b1!=null) return deep__b1 ;
deep__b1=new deep.B();
deep__b1.prop="thirdValue";
deep__b1.test=Std.parseFloat("100500");
return deep__b1;
}
/**
autogenerated NodeScope init function
**/
private function init_deep__b0() {
if(deep__b0!=null) return deep__b0 ;
deep__b0=new deep.B();
deep__b0.anotherB=init_deep__b1();
return deep__b0;
}
/**
autogenerated NodeScope init function
**/
private function init_myB() {
if(myB!=null) return myB ;
myB=new deep.B();
myB.prop="asValue";
myB.test=Std.parseFloat("123");
myB.anotherB=init_deep__b0();
return myB;
}
}
<?xml version="1.0" encoding="utf-8" ?>
<ans:A ans:aString="1" xmlns:ans="*" xmlns:deep="deep.*" >
<deep:B id="myB" test="123" prop="asValue">
<deep:anotherB>
<deep:B>
<deep:anotherB>
<deep:B test="100500" prop="thirdValue" />
</deep:anotherB>
</deep:B>
</deep:anotherB>
</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