
fitnesse.wikitext.parser.HtmlTranslator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
The newest version!
package fitnesse.wikitext.parser;
import fitnesse.wikitext.ParsingPage;
import fitnesse.wikitext.SourcePage;
public class HtmlTranslator extends Translator {
public HtmlTranslator(SourcePage currentPage, SyntaxTreeV2 syntaxTree) {
super(currentPage);
this.syntaxTree = syntaxTree;
}
public ParsingPage getParsingPage() { return syntaxTree.getParsingPage(); }
public Symbol getSyntaxTree() { return syntaxTree.getSyntaxTree(); }
@Override
protected Translation getTranslation(SymbolType symbolType) {
return symbolType.getHtmlTranslation();
}
@Override
protected Translation getTranslation(Symbol symbol) {
symbol.getType().applyParsedSymbolDecorations(symbol, syntaxTree.getParsingPage());
return super.getTranslation(symbol);
}
private final SyntaxTreeV2 syntaxTree;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy