예제 #1
0
 protected String doParse(
     Resource resource,
     boolean stream,
     String source,
     Translator translator,
     List<String> parameters,
     List<Class<?>> parameterTypes,
     Set<String> setVariables,
     Set<String> getVariables,
     Map<String, Class<?>> types,
     Map<String, Class<?>> returnTypes,
     Map<String, Class<?>> macros)
     throws IOException, ParseException {
   if (parsers == null || parsers.length == 0) {
     throw new IllegalStateException("parsers == null");
   }
   for (AbstractParser parser : parsers) {
     source =
         parser.doParse(
             resource,
             stream,
             source,
             translator,
             parameters,
             parameterTypes,
             setVariables,
             getVariables,
             types,
             returnTypes,
             macros);
   }
   return source;
 }
예제 #2
0
 @Override
 public void renderHTML(ITextConverter converter, Appendable buf, IWikiModel wikiModel)
     throws IOException {
   if (NEW_LINES) {
     buf.append("\n<blockquote");
   } else {
     buf.append("<blockquote");
   }
   HTMLTag.appendEscapedAttributes(buf, fAttributes);
   buf.append(">");
   String rawWikiText = Utils.ltrimNewline(contents);
   AbstractParser parser = wikiModel.createNewInstance(rawWikiText);
   TagStack fStack = parser.parseRecursiveInternal(wikiModel, true, false);
   converter.nodesToText(fStack.getNodeList(), buf, wikiModel);
   buf.append("</blockquote>");
 }
예제 #3
0
 @Override
 public void close() throws IOException {
   super.close();
   headerParser.close();
   headerParser = null;
   citationParser.close();
   citationParser = null;
 }
	/**
	 * @generated
	 */
	public void setEditorPattern(String editorPattern) {
		super.setEditorPattern(editorPattern);
		editorProcessor = null;
	}
	/**
	 * @generated
	 */
	public void setViewPattern(String viewPattern) {
		super.setViewPattern(viewPattern);
		viewProcessor = null;
	}