public TemplateExpression addExpression ( String expression , TypeName expressionType , boolean shouldCast , List < VariableInfo > parameters ) { String id = "exp$" + this . expressions . size ( ) ; TemplateExpression templateExpression = new TemplateExpression ( id , expression . trim ( ) , expressionType , shouldCast , parameters , context . getCurrentLine ( ) . orElse ( null ) ) ; this . expressions . add ( templateExpression ) ; return templateExpression ; }
Add an expression to the result . All the Java methods from the template will be added here so we can add them to our Vue . js component .