mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 11:29:11 +00:00
Export subclasses stubs to be compiled by Flex too.
WIP: merging ABCs Test data (flexedit) with simple class hierarchy
This commit is contained in:
17
libsrc/ffdec_lib/testdata/flexedit/pkg/MyClass.as
vendored
Normal file
17
libsrc/ffdec_lib/testdata/flexedit/pkg/MyClass.as
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package pkg {
|
||||
|
||||
public class MyClass extends ParentClass {
|
||||
|
||||
private var val:int;
|
||||
|
||||
public function MyClass(val) {
|
||||
this.val = val;
|
||||
}
|
||||
|
||||
public function getVal():int{
|
||||
return this.val;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
11
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentClass.as
vendored
Normal file
11
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentClass.as
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
package pkg {
|
||||
|
||||
public class ParentClass extends ParentParentClass {
|
||||
|
||||
public function ParentClass() {
|
||||
// constructor code
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
22
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentParentClass.as
vendored
Normal file
22
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentParentClass.as
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package pkg {
|
||||
|
||||
public class ParentParentClass {
|
||||
|
||||
//Reference to subclass: (circular reference)
|
||||
private var other:ParentClass;
|
||||
|
||||
public function ParentParentClass() {
|
||||
// constructor code
|
||||
}
|
||||
|
||||
public function setOther(other:ParentClass){
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
public function getAChar():String{
|
||||
return "A";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user