jmapper-framework / jmapper-core

Elegance, high performance and robustness all in one java bean mapper
http://jmapper-framework.github.io/jmapper-core
Apache License 2.0
231 stars 41 forks source link

Using operators in API body #80

Open M-Hagras opened 6 years ago

M-Hagras commented 6 years ago

I am trying to loop over source[List] to get data attribute pushing it to source.

I am using for loop but I get an error in codition operator. how can I escape it? code .body("for(int i=0 ; i<=${source}.size() ; i++) ${destination}.add(${source}.get(0).getXValue());" + "return ${destination};")) Error

unexpected character in markup = (position: START_TAG seen ... to ="getXValue" type ="DYNAMIC">for(int i=0 ; i<=... @220:123)