Take the tour ×  Here is a query language, more specifically,
it's JQL, you can use it in Jira, to search for issues, it's
something like SQL, but quite simpler.  My case is that, I need
to construct such queries programmatically, in my application.
Something like:  JQLMachine jqlMachine = new JQLMachine()
jqlMachine.setStatuses("Open", "In Progress")
jqlMachine.setReporter("foouser", "baruser")
jqlMachine.getQuery() --> String with corresponding JQL query is
returned  You get my point I hope. I can imagine the code for
this, but it's not nice, using my current knowledge how I'd do
that.  That's why I'm asking. What you'd advice to use to create
such thing. I believe some patterns for creating something like
this already exist and there is already best practices, how to
do that in good way.  share|improve this question take a look at
domain-specific languages, that's what jql is. –  Alex Nov 28
'12 at 19:15 Yep, you are true. And I need to create a
"generator" for such DSL, to use in my applications, so I don