Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate documentation on classes #21

Open
NotJustAnna opened this issue Feb 20, 2020 · 0 comments
Open

Generate documentation on classes #21

NotJustAnna opened this issue Feb 20, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed python-scripts This issue requires messing with the python scripts...

Comments

@NotJustAnna
Copy link
Member

By tinkering with the Python scripts to add an extra field, which may exists but I don't seem to find, which is the original, snake-case name, the following can be generated in the top-model:

public class TopModel {
    [...]

    /**
     * See <a href="https://rethinkdb.com/api/java/epoch_time">https://rethinkdb.com/api/java/epoch_time</a>
     * for specific documentation.
     */
    public EpochTime epochTime(Object expr) {
        Arguments args = new Arguments();
        args.coerceAndAdd(expr);
        return new EpochTime(args);
    }

    [...]
}

And in the object itself:

/**
 * See <a href="https://rethinkdb.com/api/java/epoch_time">https://rethinkdb.com/api/java/epoch_time</a>
 * for specific documentation.
 */
public class EpochTime extends ReqlExpr {

    public EpochTime(Object arg) {
        this(new Arguments(arg), null);
    }
    public EpochTime(Arguments args){
        this(args, null);
    }
    public EpochTime(Arguments args, OptArgs optargs) {
        super(TermType.EPOCH_TIME, args, optargs);
    }

}
@NotJustAnna NotJustAnna added enhancement New feature or request help wanted Extra attention is needed python-scripts This issue requires messing with the python scripts... labels Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed python-scripts This issue requires messing with the python scripts...
Projects
None yet
Development

No branches or pull requests

1 participant