public class SpecStringParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
fixLeadingBracketSugar(String dotNotaton)
Given a dotNotation style outputPath like "data[2].&(1,1)", this method fixes the syntactic sugar
of "data[2]" --> "data.[2]"
This makes all the rest of the String processing easier once we know that we can always
split on the '.' character.
|
static String |
parseAtPathElement(Iterator<Character> iter,
String dotNotationRef)
Parse RHS Transpose @ logic.
|
static List<String> |
parseDotNotation(List<String> pathStrings,
Iterator<Character> iter,
String dotNotationRef)
Method that recursively parses a dotNotation String based on an iterator.
|
static List<String> |
parseFunctionArgs(String argString) |
static String |
removeEscapeChars(String origKey) |
static String |
removeEscapedValues(String origKey) |
static Iterator<Character> |
stringIterator(String string)
Helper method to turn a String into an Iterator
|
public static List<String> parseDotNotation(List<String> pathStrings, Iterator<Character> iter, String dotNotationRef)
pathStrings - List to store parsed Strings that each represent a PathElementiter - the iterator to pull characters fromdotNotationRef - the original dotNotation string used for error messagespublic static Iterator<Character> stringIterator(String string)
public static String fixLeadingBracketSugar(String dotNotaton)
dotNotaton - Output path dot notationpublic static String parseAtPathElement(Iterator<Character> iter, String dotNotationRef)
iter - iterator to pull data fromdotNotationRef - the original dotNotation string used for error messagesCopyright © 2023. All rights reserved.