Package net.sf.okapi.filters.doxygen
Class WhitespaceAdjustingEventBuilder
- java.lang.Object
-
- net.sf.okapi.common.filters.EventBuilder
-
- net.sf.okapi.filters.doxygen.WhitespaceAdjustingEventBuilder
-
public class WhitespaceAdjustingEventBuilder extends EventBuilder
-
-
Constructor Summary
Constructors Constructor Description WhitespaceAdjustingEventBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcollapseWhitespace(String str)protected ITextUnitpostProcessTextUnit(ITextUnit textUnit)Do any required post-processing on the TextUnit after endTextUnit is called.-
Methods inherited from class net.sf.okapi.common.filters.EventBuilder
addDocumentPart, addFilterEvent, addFilterEvents, addTextUnit, addToDocumentPart, addToDocumentPart, addToGroup, addToTextUnit, addToTextUnit, addToTextUnit, addToTextUnit, addToTextUnit, addToTextUnit, appendCodeData, appendCodeInlineExcludedData, appendCodeOuterData, appendToFirstSkeletonPart, appendToSkeleton, appendToSkeleton, appendToSkeleton, cancel, canStartNewTextUnit, convertTempTextUnitToDocumentPart, endCode, endCode, endDocumentPart, endDocumentPart, endGroup, endGroup, endSubDocument, endTextUnit, endTextUnit, endTextUnit, findMostRecentParentId, findMostRecentParentName, findMostRecentTextUnitName, flushRemainingTempEvents, getCurrentCode, getDocumentPartId, getGroupId, getGroupIdSequence, getRootId, getSubDocumentId, getTextUnitId, hasNext, hasParentTextUnit, hasQueuedEvents, hasUnfinishedSkeleton, isCurrentComplexTextUnit, isCurrentGroup, isCurrentSubfilter, isCurrentTextUnit, isInsideTextRun, isPreserveWhitespace, isTextUnitWithSameType, next, peekMostRecentCode, peekMostRecentGroup, peekMostRecentSubDocument, peekMostRecentTextUnit, peekTempEvent, popFilterEvent, popTempEvent, reset, setDocumentPartId, setGroupIdSequence, setMimeType, setPreserveWhitespace, setTextUnitId, setTextUnitMimeType, setTextUnitName, setTextUnitPreserveWhitespace, setTextUnitTranslatable, setTextUnitType, startCode, startDocumentPart, startDocumentPart, startDocumentPart, startGroup, startGroup, startSubDocument, startTextUnit, startTextUnit, startTextUnit, startTextUnit, startTextUnit, startTextUnit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
postProcessTextUnit
protected ITextUnit postProcessTextUnit(ITextUnit textUnit)
Description copied from class:EventBuilderDo any required post-processing on the TextUnit after endTextUnit is called. Default implementation leaves TextUnit unchanged. Override this method if you need to do format specific handing such as collapsing whitespace.- Overrides:
postProcessTextUnitin classEventBuilder- Parameters:
textUnit- theITextUnitto post-process.- Returns:
- the post-processed
ITextUnit.
-
-