Interface Prerenderer
-
public interface PrerendererThis is an interface for classes that can be used byTranslator(trough theTranslatorConfiguration). InTranslatorConfigurationthere is a list of Prerenderers. When methodTranslator.prepareNode(AbstractNode mainNode)is called, prerenders are taken from this list one by one andprepareNodemethod is called on each of them with mainNode as an attribute.These classes can be added to
TranslatorConfigurationbyaddPrerender(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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractNodeprepareNode(AbstractNode node)Method that is used inTranslatorwhentranslator.prepareNodemethod is called
-
-
-
Method Detail
-
prepareNode
AbstractNode prepareNode(AbstractNode node)
Method that is used inTranslatorwhentranslator.prepareNodemethod is called- Parameters:
node-
-
-