public class NotationParser extends Object
| Constructor and Description |
|---|
NotationParser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findSegment(String input)
Finds a segment at the start of the input string, if possible.
|
static boolean |
isAccessor(String input)
Returns whether the input is an accessor.
|
static boolean |
isIndex(String input)
Returns whether the input is an index.
|
static boolean |
isProperty(String input)
Returns whether the input is a property.
|
static boolean |
isPropertyOpener(char input)
Returns whether the input character is a property opener.
|
static boolean |
isSegment(String input)
Returns whether the input is a valid segment.
|
static NotationSegment |
parseSegment(String segment)
Parses a previously found segment into a
NotationSegment
instance. |
@Nullable public static String findSegment(@Nonnull String input)
input - the input string to read back from.public static boolean isAccessor(@Nonnull String input)
input - the input value to verify against.public static boolean isIndex(@Nonnull String input)
input - the input value to verify against.public static boolean isProperty(@Nonnull String input)
input - the input value to verify against.public static boolean isPropertyOpener(char input)
input - the input character to verify against.public static boolean isSegment(@Nonnull String input)
input - the input value to verify against.public static NotationSegment parseSegment(@Nonnull String segment)
NotationSegment
instance.
This method will throw an exception if the provided segment is
invalid or null.segment - the input segment to parse out.NotationSegment.Copyright © 2017. All rights reserved.