use of jetbrick.template.parser.grammer.JetTemplateParser.Hash_map_entry_listContext in project jetbrick-template-1x by subchen.
the class JetTemplateCodeVisitor method visitExpr_hash_map.
@Override
public Code visitExpr_hash_map(Expr_hash_mapContext ctx) {
String source = "Collections.EMPTY_MAP";
Hash_map_entry_listContext hash_map_entry_list = ctx.hash_map_entry_list();
if (hash_map_entry_list != null) {
Code code = hash_map_entry_list.accept(this);
source = "JetUtils.asMap(" + code.toString() + ")";
}
return new SegmentCode(Map.class, source, ctx);
}
Aggregations