| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int[] | |
| private final List | |
| private static final String[] | |
| private int | |
| private final StringBuffer | |
| private final List | |
| private final Map | |
| private final StringBuffer | |
| private int | |
| private final Pattern | |
| private final StringBuffer | |
| private static final Set | |
| private int | |
| private final String | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private char | |
| protected String | Returns: the encoded literal characters.the literal characters characters)Encode literal characters of a template. |
| public final List | Returns: the capturing group counts.Get the capturing group counts for each template variable. |
| public final int[] | Returns: the group indexes to capturing groups.Get the group indexes to capturing groups. |
| public final List | |
| public final Map | Returns: the map of template names to patterns.Get the map of template names to patterns. |
| public final String | |
| public final int | Returns: the number of explicit regular expressions.Get the number of explicit regular expressions. |
| public final int | Returns: the number of literal characters.Get the number of literal characters. |
| public final int | Returns: the number of regular expressions groupsGet the number of regular expression groups |
| public final Pattern | |
| public final String | |
| private static String[] | |
| private static Set | |
| private void | |
| private int | |
| private String | |
| private void |
| EMPTY_INT_ARRAY | back to summary |
|---|---|
| pack-priv static final int[] EMPTY_INT_ARRAY | |
| groupCounts | back to summary |
|---|---|
| private final List<Integer> groupCounts | |
| HEX_TO_UPPERCASE_REGEX | back to summary |
|---|---|
| private static final String[] HEX_TO_UPPERCASE_REGEX | |
| literalCharacters | back to summary |
|---|---|
| private int literalCharacters | |
| literalCharactersBuffer | back to summary |
|---|---|
| private final StringBuffer literalCharactersBuffer | |
| names | back to summary |
|---|---|
| private final List<String> names | |
| nameToPattern | back to summary |
|---|---|
| private final Map<String, Pattern> nameToPattern | |
| normalizedTemplate | back to summary |
|---|---|
| private final StringBuffer normalizedTemplate | |
| numOfExplicitRegexes | back to summary |
|---|---|
| private int numOfExplicitRegexes | |
| pattern | back to summary |
|---|---|
| private final Pattern pattern | |
| regex | back to summary |
|---|---|
| private final StringBuffer regex | |
| RESERVED_REGEX_CHARACTERS | back to summary |
|---|---|
| private static final Set<Character> RESERVED_REGEX_CHARACTERS | |
| skipGroup | back to summary |
|---|---|
| private int skipGroup | |
| template | back to summary |
|---|---|
| private final String template | |
| TEMPLATE_VALUE_PATTERN | back to summary |
|---|---|
| private static final Pattern TEMPLATE_VALUE_PATTERN | |
| UriTemplateParser | back to summary |
|---|---|
| public UriTemplateParser(final String template) throws IllegalArgumentException Parse a template.
| |
| consumeWhiteSpace | back to summary |
|---|---|
| private char consumeWhiteSpace(final CharacterIterator ci) | |
| encodeLiteralCharacters | back to summary |
|---|---|
| protected String encodeLiteralCharacters(final String characters) Encode literal characters of a template. | |
| getGroupCounts | back to summary |
|---|---|
| public final List Get the capturing group counts for each template variable. | |
| getGroupIndexes | back to summary |
|---|---|
| public final int[] getGroupIndexes() Get the group indexes to capturing groups. Any nested capturing groups will be ignored and the the group index will refer to the top-level capturing groups associated with the templates variables.
| |
| getNames | back to summary |
|---|---|
| public final List Get the list of template names. | |
| getNameToPattern | back to summary |
|---|---|
| public final Map Get the map of template names to patterns. | |
| getNormalizedTemplate | back to summary |
|---|---|
| public final String getNormalizedTemplate() Get the normalized template. A normalized template is a template without any explicit regular expressions.
| |
| getNumberOfExplicitRegexes | back to summary |
|---|---|
| public final int getNumberOfExplicitRegexes() Get the number of explicit regular expressions.
| |
| getNumberOfLiteralCharacters | back to summary |
|---|---|
| public final int getNumberOfLiteralCharacters() Get the number of literal characters.
| |
| getNumberOfRegexGroups | back to summary |
|---|---|
| public final int getNumberOfRegexGroups() Get the number of regular expression groups
| |
| getPattern | back to summary |
|---|---|
| public final Pattern getPattern() Get the pattern.
| |
| getTemplate | back to summary |
|---|---|
| public final String getTemplate() Get the template.
| |
| initHexToUpperCaseRegex | back to summary |
|---|---|
| private static String[] initHexToUpperCaseRegex() | |
| initReserved | back to summary |
|---|---|
| private static Set | |
| parse | back to summary |
|---|---|
| private void parse(final CharacterIterator ci) | |
| parseName | back to summary |
|---|---|
| private int parseName(final CharacterIterator ci, int skipGroup) | |
| parseRegex | back to summary |
|---|---|
| private String parseRegex(final CharacterIterator ci) | |
| processLiteralCharacters | back to summary |
|---|---|
| private void processLiteralCharacters() | |