Class CodeGenerator
java.lang.Object
io.deephaven.engine.table.impl.util.codegen.CodeGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
final CodeGenerator
activateOptional
(String tag) void
static CodeGenerator
Open new block.final String
build()
static CodeGenerator
final CodeGenerator
freeze()
static CodeGenerator
Begin new indentation scope, e.g.final CodeGenerator
static CodeGenerator
Same "tail wagging the dog" comment applies.static CodeGenerator
Same "tail wagging the dog" comment applies.final void
static CodeGenerator
samelineBlock
(Object... args) The tail wagging the dog: the proper method signature for this method isCodeGenerator samelineBlock(String prefix, Object... args)
But when I do that, IntelliJ by default litters up the code with parameter hints, which (if the programmer doesn't turn them off), makes the templated code much more unreadable.
-
Constructor Details
-
CodeGenerator
public CodeGenerator()
-
-
Method Details
-
create
-
block
Open new block. Opening brace on same line. -
indent
Begin new indentation scope, e.g. to format multiple lines of function parameters. -
samelineBlock
The tail wagging the dog: the proper method signature for this method isCodeGenerator samelineBlock(String prefix, Object... args)
But when I do that, IntelliJ by default litters up the code with parameter hints, which (if the programmer doesn't turn them off), makes the templated code much more unreadable. So instead we just pull out the parameter from here.- Parameters:
args
- A prefix (of type String) like "else", followed by an arbitrary number of template lines.- Returns:
- The new component.
-
optional
Same "tail wagging the dog" comment applies. -
repeated
Same "tail wagging the dog" comment applies. -
replace
-
activateOptional
-
activateAllOptionals
-
instantiateNewRepeated
-
build
-
freeze
-
assertNoUnresolvedVariables
public void assertNoUnresolvedVariables()
-