final public Comment Comment() throws ParseException {Token start, end; StringBuilder buf = new StringBuilder(); switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { case COMMENT:{ start = jj_consume_token(COMMENT); break; } case TERSE_COMMENT:{ start = jj_consume_token(TERSE_COMMENT); break; } default: jj_la1[77] = jj_gen; jj_consume_token(-1); throw new ParseException(); } end = UnparsedContent(start, buf); Comment result = new Comment(buf.toString()); result.setLocation(template, start, end); {if ("" != null) return result;} throw new Error("Missing return statement in function"); }
@SuppressWarnings("unchecked") public static Map<String, String> extractMetaData(Template template) { Enumeration children = template.getRootTreeNode().children(); for (TemplateElement child : new EnumerationIterator<TemplateElement>(children)) { if (child instanceof Comment) { Comment c = (Comment) child; return extractTags(c.getText()); } } return null; }
final public Comment Comment() throws ParseException {Token start, end; StringBuilder buf = new StringBuilder(); switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { case COMMENT:{ start = jj_consume_token(COMMENT); break; } case TERSE_COMMENT:{ start = jj_consume_token(TERSE_COMMENT); break; } default: jj_la1[77] = jj_gen; jj_consume_token(-1); throw new ParseException(); } end = UnparsedContent(start, buf); Comment result = new Comment(buf.toString()); result.setLocation(template, start, end); {if ("" != null) return result;} throw new Error("Missing return statement in function"); }
final public Comment Comment() throws ParseException {Token start, end; StringBuilder buf = new StringBuilder(); switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { case COMMENT:{ start = jj_consume_token(COMMENT); break; } case TERSE_COMMENT:{ start = jj_consume_token(TERSE_COMMENT); break; } default: jj_la1[77] = jj_gen; jj_consume_token(-1); throw new ParseException(); } end = UnparsedContent(start, buf); Comment result = new Comment(buf.toString()); result.setLocation(template, start, end); {if ("" != null) return result;} throw new Error("Missing return statement in function"); }
final public Comment Comment() throws ParseException { Token start, end; StringBuffer buf = new StringBuffer(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMENT: start = jj_consume_token(COMMENT); break; case TERSE_COMMENT: start = jj_consume_token(TERSE_COMMENT); break; default: jj_la1[61] = jj_gen; jj_consume_token(-1); throw new ParseException(); } end = UnparsedContent(buf); Comment result = new Comment(buf.toString()); result.setLocation(template, start, end); {if (true) return result;} throw new Error("Missing return statement in function"); }