This is used by helper classes like NumberMatcher that let you change the way certain
things get parsed.
The actual implementation of this is the (internal and very complicated) WorkingDocument
class.
| Modifier and Type | Method and Description |
|---|---|
| public int | charAt(final int index)
Returns the character at the given index in the input document, or -1 if the index is not contained within the document. |
| public CharSequence | |
| public CharSequence | extract(final int startIndex, final int endIndex)
Extracts a copy of a slice of the current entire content of the input as a |
| public SnuggleInput | |
| public int | indexOf(final int startSearchIndex, final char c)
Returns the first index of the given character, starting the search at the given index. |
| public int | |
| public boolean | isRegionWhitespace(final int startIndex, final int endIndex)
Tests whether all characters in the document with index satisfying startIndex <= index < endIndex are whitespace. |
| public int | |
| public boolean | matchesAt(final int index, final char c)
Tests whether the character at the given index is equal to that specified. |
| public boolean |
| charAt | back to summary |
|---|---|
| public int charAt(final int index) Returns the character at the given index in the input document, or -1 if the index is not contained within the document. | |
| extract | back to summary |
|---|---|
| public CharSequence extract() Extracts a copy of the current entire content of the input as a | |
| extract | back to summary |
|---|---|
| public CharSequence extract(final int startIndex, final int endIndex) Extracts a copy of a slice of the current entire content of the input as a | |
| getInput | back to summary |
|---|---|
| public SnuggleInput getInput() Accesses the underlying | |
| indexOf | back to summary |
|---|---|
| public int indexOf(final int startSearchIndex, final char c) Returns the first index of the given character, starting the search at the given index. Returns -1 if not found. | |
| indexOf | back to summary |
|---|---|
| public int indexOf(final int startSearchIndex, final String s) Returns the first index of the given String, starting the search at the given index. Returns -1 if not found. | |
| isRegionWhitespace | back to summary |
|---|---|
| public boolean isRegionWhitespace(final int startIndex, final int endIndex) Tests whether all characters in the document with index satisfying startIndex <= index < endIndex are whitespace. | |
| length | back to summary |
|---|---|
| public int length() Current length of this input | |
| matchesAt | back to summary |
|---|---|
| public boolean matchesAt(final int index, final char c) Tests whether the character at the given index is equal to that specified. | |
| matchesAt | back to summary |
|---|---|
| public boolean matchesAt(final int index, final String s) Tests whether the characters at the given index are equal to the String specified. | |