Class JPropPathSplitter.CharPathOnlySplitter

  • Enclosing class:
    JPropPathSplitter

    public static class JPropPathSplitter.CharPathOnlySplitter
    extends JPropPathSplitter
    Simple variant where we only have path separator, and optional "segment is index iff value is integer number"
    • Field Detail

      • _pathSeparatorChar

        protected final char _pathSeparatorChar
      • _pathSeparatorEscapeChar

        protected final char _pathSeparatorEscapeChar
    • Constructor Detail

      • CharPathOnlySplitter

        public CharPathOnlySplitter​(char sepChar,
                                    char pathSeparatorEscapeChar,
                                    boolean useIndex)
    • Method Detail

      • splitAndAdd

        public JPropNode splitAndAdd​(JPropNode parent,
                                     java.lang.String key,
                                     java.lang.String value)
        Description copied from class: JPropPathSplitter
        Main access method for splitting key into one or more segments and using segmentation to add the String value as a node in its proper location.
        Specified by:
        splitAndAdd in class JPropPathSplitter
        Returns:
        Newly added node
      • _continueWithEscapes

        private JPropNode _continueWithEscapes​(JPropNode parent,
                                               java.lang.String key,
                                               int start,
                                               java.lang.String value)