diff --git a/eo-maven-plugin/tuple-to-java-old.xml b/eo-maven-plugin/tuple-to-java-old.xml new file mode 100644 index 0000000000..e2c4b5851c --- /dev/null +++ b/eo-maven-plugin/tuple-to-java-old.xml @@ -0,0 +1,137 @@ + + + [] > foo + * 1 2 (* 3 4) > @ + +[] > bar + zz 42 * > tt + +[] > baz + """ + абвгд + """ > @ + + + + add-default-package + classes + attrs + data + to-java + + + + + + +/* */ +import org.eolang.*; + +// <o abstract="" line="1" name="foo" pos="0"> +// <o base="org.eolang.tuple" line="2" name="@" pos="2" star=""> +// <o base="org.eolang.int" data="bytes" line="2" pos="4">00 00 00 00 00 00 00 01</o> +// <o base="org.eolang.int" data="bytes" line="2" pos="6">00 00 00 00 00 00 00 02</o> +// <o base="org.eolang.tuple" line="2" pos="9" star=""> +// <o base="org.eolang.int" data="bytes" line="2" pos="11">00 00 00 00 00 00 00 03</o> +// <o base="org.eolang.int" data="bytes" line="2" pos="13">00 00 00 00 00 00 00 04</o> +// </o> +// </o> +// </o> +@XmirObject(name = "foo", oname = "foo", source = "") +public final class EOfoo extends PhDefault { + + public EOfoo(final Phi sigma) { + super(sigma); + this.add("φ", new AtOnce(new AtComposite(this, rho -> { + Phi ret = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get(); + ret = new PhLocated(ret, 2, 2, ""); + ret = new PhCopy(ret); + Phi ret_1 = new EOorg.EOeolang.EOint(Phi.Φ); + ret_1 = new PhLocated(ret_1, 2, 4, ""); + ret_1 = new PhWith(ret_1, 0, new Data.Value<>(new byte[] {(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x01})); + Phi ret_2 = new EOorg.EOeolang.EOint(Phi.Φ); + ret_2 = new PhLocated(ret_2, 2, 6, ""); + ret_2 = new PhWith(ret_2, 0, new Data.Value<>(new byte[] {(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x02})); + Phi ret_3 = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get(); + ret_3 = new PhLocated(ret_3, 2, 9, ""); + ret_3 = new PhCopy(ret_3); + Phi ret_3_1 = new EOorg.EOeolang.EOint(Phi.Φ); + ret_3_1 = new PhLocated(ret_3_1, 2, 11, ""); + ret_3_1 = new PhWith(ret_3_1, 0, new Data.Value<>(new byte[] {(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x03})); + Phi ret_3_2 = new EOorg.EOeolang.EOint(Phi.Φ); + ret_3_2 = new PhLocated(ret_3_2, 2, 13, ""); + ret_3_2 = new PhWith(ret_3_2, 0, new Data.Value<>(new byte[] {(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x04})); + ret_3 = new PhWith(ret_3, 0, ret_3_1); + ret_3 = new PhWith(ret_3, 1, ret_3_2); + ret = new PhWith(ret, 0, ret_1); + ret = new PhWith(ret, 1, ret_2); + ret = new PhWith(ret, 2, ret_3); + return ret; + }))); + } +} + + + + +/* */ +import org.eolang.*; + +// <o abstract="" line="4" name="bar" pos="0"> +// <o base="org.eolang.zz" line="5" name="tt" pos="2"> +// <o base="org.eolang.int" data="bytes" line="5" pos="5">00 00 00 00 00 00 00 2A</o> +// <o base="org.eolang.tuple" line="5" pos="8" star=""/> +// </o> +// </o> +@XmirObject(name = "bar", oname = "bar", source = "") +public final class EObar extends PhDefault { + + public EObar(final Phi sigma) { + super(sigma); + this.add("tt", new AtOnce(new AtComposite(this, rho -> { + Phi ret = Phi.Φ.attr("org").get().attr("eolang").get().attr("zz").get(); + ret = new PhLocated(ret, 5, 2, ""); + ret = new PhCopy(ret); + Phi ret_1 = new EOorg.EOeolang.EOint(Phi.Φ); + ret_1 = new PhLocated(ret_1, 5, 5, ""); + ret_1 = new PhWith(ret_1, 0, new Data.Value<>(new byte[] {(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x2A})); + Phi ret_2 = Phi.Φ.attr("org").get().attr("eolang").get().attr("tuple").get(); + ret_2 = new PhLocated(ret_2, 5, 8, ""); + ret = new PhWith(ret, 0, ret_1); + ret = new PhWith(ret, 1, ret_2); + return ret; + }))); + } +} + + + + +/* */ +import org.eolang.*; + +// <o abstract="" line="7" name="baz" pos="0"> +// <o base="org.eolang.string" data="bytes" line="8" name="@" pos="2">D0 B0 D0 B1 D0 B2 D0 B3 D0 B4</o> +// </o> +@XmirObject(name = "baz", oname = "baz", source = "") +public final class EObaz extends PhDefault { + + public EObaz(final Phi sigma) { + super(sigma); + this.add("φ", new AtOnce(new AtComposite(this, rho -> { + Phi ret = new EOorg.EOeolang.EOstring(Phi.Φ); + ret = new PhLocated(ret, 8, 2, ""); + ret = new PhWith(ret, 0, new Data.Value<>(new byte[] {(byte) 0xD0, (byte) 0xB0, (byte) 0xD0, (byte) 0xB1, (byte) 0xD0, (byte) 0xB2, (byte) 0xD0, (byte) 0xB3, (byte) 0xD0, (byte) 0xB4})); + return ret; + }))); + } +} + + + +