// Path: src/main/java/com/nebhale/jsonpath/internal/parser/PathCharacter.java
// enum CharacterType {
//     ARRAY_CLOSE, //
//     ARRAY_OPEN, //
//     COMMA, //
//     COMPLEX_NAME_CHARACTER, //
//     DIGIT, //
//     DOT, //
//     DOUBLE_QUOTE, //
//     END, //
//     HYPHEN, //
//     INDEX_CHARACTER, //
//     LETTER, //
//     QUOTE, //
//     ROOT, //
//     SIMPLE_NAME_CHARACTER, //
//     SPACE, //
//     UNDERSCORE, //
//     WILDCARD;
// }
// 
// Path: src/main/java/com/nebhale/jsonpath/internal/util/Sets.java
// public final class Sets {
// 
//     private Sets() {
//     }
// 
//     /**
//      * Creates a {@link Set} from a collection of items
//      *
//      * @param items The items to create the set from
//      * @return The set created from the collection of items
//      */
//     public static <T> Set<T> asSet(T... items) {
//         Set<T> set = new HashSet<T>();
//         for (T item : items) {
//             set.add(item);
//         }
//         return set;
//     }
// }


import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.nebhale.jsonpath.internal.parser.PathCharacter.CharacterType;
import com.nebhale.jsonpath.internal.util.Sets;
                characterTypes.add(CharacterType.HYPHEN);
            } else if (Character.isLetter(c)) {
                characterTypes.add(CharacterType.LETTER);
            } else if (c == QUOTE) {
                characterTypes.add(CharacterType.QUOTE);
            } else if (c == ROOT) {
                characterTypes.add(CharacterType.ROOT);
            } else if (c == SPACE) {
                characterTypes.add(CharacterType.SPACE);
            } else if (c == UNDERSCORE) {
                characterTypes.add(CharacterType.UNDERSCORE);
            } else if (c == WILDCARD) {
                characterTypes.add(CharacterType.WILDCARD);
            }

            if (isComplexNameCharacter(c)) {
                characterTypes.add(CharacterType.COMPLEX_NAME_CHARACTER);
            }

            if (isSimpleNameCharacter(c)) {
                characterTypes.add(CharacterType.SIMPLE_NAME_CHARACTER);
            }

            if (isIndexCharacter(c)) {
                characterTypes.add(CharacterType.INDEX_CHARACTER);
            }

            this.pathCharacters.add(new PathCharacter(characterTypes, c, counter++));
        }

// Path: src/main/java/com/nebhale/jsonpath/internal/parser/PathCharacter.java
// enum CharacterType {
//     ARRAY_CLOSE, //
//     ARRAY_OPEN, //
//     COMMA, //
//     COMPLEX_NAME_CHARACTER, //
//     DIGIT, //
//     DOT, //
//     DOUBLE_QUOTE, //
//     END, //
//     HYPHEN, //
//     INDEX_CHARACTER, //
//     LETTER, //
//     QUOTE, //
//     ROOT, //
//     SIMPLE_NAME_CHARACTER, //
//     SPACE, //
//     UNDERSCORE, //
//     WILDCARD;
// }
// 
// Path: src/main/java/com/nebhale/jsonpath/internal/util/Sets.java
// public final class Sets {
// 
//     private Sets() {
//     }
// 
//     /**
//      * Creates a {@link Set} from a collection of items
//      *
//      * @param items The items to create the set from
//      * @return The set created from the collection of items
//      */
//     public static <T> Set<T> asSet(T... items) {
//         Set<T> set = new HashSet<T>();
//         for (T item : items) {
//             set.add(item);
//         }
//         return set;
//     }
// }


// Path: src/main/java/com/nebhale/jsonpath/internal/parser/StandardPathScanner.java
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.nebhale.jsonpath.internal.parser.PathCharacter.CharacterType;
import com.nebhale.jsonpath.internal.util.Sets;

                characterTypes.add(CharacterType.HYPHEN);
            } else if (Character.isLetter(c)) {
                characterTypes.add(CharacterType.LETTER);
            } else if (c == QUOTE) {
                characterTypes.add(CharacterType.QUOTE);
            } else if (c == ROOT) {
                characterTypes.add(CharacterType.ROOT);
            } else if (c == SPACE) {
                characterTypes.add(CharacterType.SPACE);
            } else if (c == UNDERSCORE) {
                characterTypes.add(CharacterType.UNDERSCORE);
            } else if (c == WILDCARD) {
                characterTypes.add(CharacterType.WILDCARD);
            }

            if (isComplexNameCharacter(c)) {
                characterTypes.add(CharacterType.COMPLEX_NAME_CHARACTER);
            }

            if (isSimpleNameCharacter(c)) {
                characterTypes.add(CharacterType.SIMPLE_NAME_CHARACTER);
            }

            if (isIndexCharacter(c)) {
                characterTypes.add(CharacterType.INDEX_CHARACTER);
            }

            this.pathCharacters.add(new PathCharacter(characterTypes, c, counter++));
        }

        this.pathCharacters.add(new PathCharacter(Sets.asSet(CharacterType.END), '\0', counter));