public class ReflectionStringSplitter extends Object
The logic comes down to finding all '.' characters, while skipping when they're part of an indexer. Keep track of the indexers by testing for open and closing brackets, while skipping when we're in between quotes. Test for escaping of quotes, no need to check for escaping of brackets.
Modifier and Type | Method and Description |
---|---|
protected static List<String> |
splitIndexer(String reflectionString) |
protected static List<String> |
splitMethods(String reflectionString) |
Copyright © 2021 RWS Group for and on behalf of its affiliates and subsidiaries. All rights reserved.