Skip to content

Instantly share code, notes, and snippets.

@mikebrock
Created June 20, 2011 18:38
Show Gist options
  • Save mikebrock/1036247 to your computer and use it in GitHub Desktop.
Save mikebrock/1036247 to your computer and use it in GitHub Desktop.
String s = StatementBuilder.create()
.addVariable("n", Integer.class)
.loadVariable("n")
.do_()
.append(StatementBuilder.create().loadVariable("n").assignValue(1))
.finish()
.while_(BooleanOperator.GreaterThanOrEqual, 1)
.toJavaString();
---[output]---
Integer n;
do {
n = 1;
} while (n >= 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment