Artefact:Template/org/oogenerator/examples/tutorial/Example0030 Expression

From OOModels
Jump to navigationJump to search
Classification
Type Type:org/oogenerator/Template/2.0
Domain Domain:it/development/formatting
Category Type:org/oomodels/wiki/Template
Maturity final
More
Download Code
Namespace (more)

OOGenerator main package

create new pages

Code[edit]

G-2.0-plain_java-1.0
⊰
   This templates demonstrates the use of embedded java expressions.
⊱
⊰
   The first example is just another way to say "Hello, world!".
   The placeholder ◂...▸ is replaced by the value of the java expression
   between the filled arrows.
⊱

    Hello, ◂"world"▸!

⊰
   So, any valid java expression is usable.
⊱

    Hello, ◂"w"+"o"+"r"+"l"+"d"▸!
    2 * 21 = ◂2*21▸