T - the type of the notation.public abstract class NotationSegment<T> extends Object
| Type | Property and Description |
|---|---|
NotationSegment<String> |
as
Returns this instance cast as a property segment.
|
boolean |
is
Gets the value of the property property.
|
| Modifier and Type | Method and Description |
|---|---|
NotationSegment<Integer> |
asIndex()
Returns this instance cast as an index segment.
|
NotationSegment<String> |
asProperty()
Returns this instance cast as a property segment.
|
abstract String |
escape()
Escapes the value for a joiner.
|
boolean |
isIndex()
Returns whether this instance is an index segment.
|
boolean |
isProperty()
Gets the value of the property property.
|
static NotationSegment |
parse(Integer index)
Parses an integer value into an index segment.
|
static NotationSegment |
parse(String property)
Parses a textual value into an property segment.
|
Class<T> |
type()
Returns the type of this instance.
|
T |
value()
Returns the generic value of this segment.
|
@Nonnull public NotationSegment<String> asProperty
public boolean isProperty
@Nonnull public abstract String escape()
@Nonnull public NotationSegment<Integer> asIndex()
@Nonnull public NotationSegment<String> asProperty()
public boolean isIndex()
public boolean isProperty()
@Nonnull public Class<T> type()
@Nonnull public T value()
@Nonnull public static NotationSegment parse(@Nonnull Integer index)
index - the index to parse into a segment.NotationSegment instance.@Nonnull public static NotationSegment parse(@Nonnull String property)
property - the property to parse into a segment.NotationSegment instance.Copyright © 2017. All rights reserved.