Thursday, 22 July 2021

Javapoet: Working with CodeBlock

CodeBlock supports placeholders like java.text.Format, Where String.format uses percent % to reference target values, this class uses dollar sign $ and has its own set of permitted placeholders.

 

CodeBlock supports following 3 syntaxes.

a.   Relative Arguments

b.   Positional Arguments

c.    Named Arguments

 

In upcoming posts, I will explain these with an example.

Previous                                                    Next                                                    Home

No comments:

Post a Comment