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
Add support for custom model addapters #34
Comments
I'm not following on how model adaptors would be useful. Do you have some example code? |
I don't have example code, but the scenario is pretty simple. I'm just trying to determine if a particular type is a |
Ah, I think I understand... do you want to add an |
Well, adding the model adapter would allow extending the model in ways that aren't generally useful to other teams. In this case, though, is there any way to tell if a type is a query other than looking at the name or a comment? |
I'm customizing the template in order to change how the Java code is generated. However, there are a couple of things I'd like to do that can't be done without modifying STDModel.java (which I would like to avoid doing). I noticed that one way around this is to use StringTemplate model adaptor (https://github.com/antlr/stringtemplate4/blob/master/doc/adaptors.md). It'd be great if this project had support for adding custom model generators; it would make it quite extensible.
The text was updated successfully, but these errors were encountered: