Interface Prerenderer
public interface Prerenderer
This is an interface for classes that can be used by
Translator (trough
the TranslatorConfiguration). In TranslatorConfiguration there is a list of Prerenderers. When
method Translator.prepareNode(AbstractNode mainNode) is called, prerenders are taken from this list one
by one and prepareNode method is called on each of them with mainNode as an attribute.
These classes can be added to TranslatorConfiguration by addPrerender(PrerendererInterface)
method. Prerenderers are used there to do some additional action between phase in which nodes are created from input
text and phase in which these nodes are used to create output text.
-
Method Summary
Modifier and TypeMethodDescriptionprepareNode(AbstractNode node) Method that is used inTranslatorwhentranslator.prepareNodemethod is called
-
Method Details
-
prepareNode
Method that is used inTranslatorwhentranslator.prepareNodemethod is called- Parameters:
node-
-