public class WhitespaceRemovalProcessor extends Object implements TemplateModelPostProcessor
| Constructor and Description |
|---|
WhitespaceRemovalProcessor() |
| Modifier and Type | Method and Description |
|---|---|
TemplateModel |
process(TemplateModel templateModel,
int ppIndex)
Performs any post-processing on the given
TemplateModel as defined
by the implementing class. |
public TemplateModel process(TemplateModel templateModel, int ppIndex) throws PostProcessorException
TemplateModelPostProcessorTemplateModel as defined
by the implementing class.
Only the returned instance shall be used further by the caller. Implementing
classes may choose to return the provided instance, or create a completely new
instance for further processing.process in interface TemplateModelPostProcessortemplateModel - the original template model (which might have already been
processed by previous TemplateModelPostProcessors.ppIndex - the index (starting from 0) of the post-processor as it appears in
the list of given post-processor class names.TemplateModel which shall be used for further
processing by following post-processors, or finally by the JavaGenerator.PostProcessorExceptionTemplateModelPostProcessor.process(com.fizzed.rocker.model.TemplateModel, int)Copyright © 2016–2020 Fizzed, Inc. All rights reserved.