You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Bessonov (Jira)" <ji...@apache.org> on 2021/06/28 11:31:00 UTC

[jira] [Updated] (IGNITE-14087) Implement code generation for interfaces introduced in IGNITE-14062

     [ https://issues.apache.org/jira/browse/IGNITE-14087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Bessonov updated IGNITE-14087:
-----------------------------------
    Labels: iep-55  (was: )

> Implement code generation for interfaces introduced in IGNITE-14062
> -------------------------------------------------------------------
>
>                 Key: IGNITE-14087
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14087
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Ivan Bessonov
>            Assignee: Ivan Bessonov
>            Priority: Major
>              Labels: iep-55
>             Fix For: 3.0.0-alpha2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {color:#172b4d}I expect to see following code to be created with all used interfaces:{color}
> {code:java}
> public final class RestNode extends InnerNode implements RestView, RestChange, RestInit {
>     private Integer port;
>     private Integer portRange;
>     @Override
>     public int port() {
>         return port;
>     }
>     @Override
>     public RestChange changePort(int port) {
>         this.port = port;
>         return this;
>     }
>     @Override
>     public RestInit initPort(int port) {
>         this.port = port;
>         return this;
>     }
>     @Override
>     public int portRange() {
>         return portRange;
>     }
>     @Override
>     public RestChange changePortRange(int portRange) {
>         this.portRange = portRange;
>         return this;
>     }
>     @Override
>     public RestInit initPortRange(int portRange) {
>         this.portRange = portRange;
>         return this;
>     }
>     /**
>      * {@inheritDoc}
>      */
>     @Override
>     public void traverseChildren(ConfigurationVisitor visitor) {
>         visitor.visitLeafNode("port", port);
>         visitor.visitLeafNode("portRange", portRange);
>     }
>     /**
>      * {@inheritDoc}
>      */
>     @Override
>     public void traverseChild(String key, ConfigurationVisitor visitor) throws NoSuchElementException {
>         switch (key) {
>             case "port": visitor.visitLeafNode("port", port);
>                 break;
>             case "portRange": visitor.visitLeafNode("portRange", portRange);
>                 break;
>             default: throw new NoSuchElementException(key);
>         }
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)