public String toTemplateString ( ) { String [ ] parametersName = this . parameters . stream ( ) . map ( VariableInfo :: getName ) . toArray ( String [ ] :: new ) ; return this . getId ( ) + "(" + String . join ( ", " , parametersName ) + ")" ; }
Return this expression as a string that can be placed in the template as a replacement of the Java expression .