Class Util

java.lang.Object
eu.bandm.tools.d2d2.rt.Util

public class Util extends Object
Analyse and manipulate the data compoments in run-time d2d parsing.
  • Method Details

    • allChars

      public static String allChars(Udom udom)
      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() )