Package eu.bandm.tools.d2d2.rt
Class Util
java.lang.Object
eu.bandm.tools.d2d2.rt.Util
Analyse and manipulate the data compoments in run-time d2d parsing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Extract all character data.static ResultingStructure
processText
(ResultingStructure input, UnaryOperator<String> function) Generic post-processor transforming only character data and returning one simple character data result.
-
Method Details
-
allChars
Extract all character data. -
processText
public static ResultingStructure processText(ResultingStructure input, UnaryOperator<String> function) Generic post-processor transforming only character data and returning one simple character data result. Can be used for easy construction of d2d parsing post processors:PostProcessor pp = x -> Util.processText (x, t -> t.trim() )
-