Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Formatted Syntax

Adrián Rivero edited this page Nov 5, 2016 · 5 revisions

In Declex, many parameters can be formatted, in order to include Java Code in them. For it, you should put the java code inside a {<java code>} block.

Let's say that we have an annotation that supports formatting in some of it's parameters, then we can pass a Formatted String, referencing several methods or fields in the code.

Ex.

"The name of the user is {getUserName()}"

This is converted to:

"The name of the user is " + getUserName();