| Constructor and Description |
|---|
StringParser(String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
consume() |
void |
consume(int count) |
void |
consumeWhitespace() |
void |
consumeWhitespace(char[] exception) |
void |
consumeWhitespace(CharSequence exception) |
void |
consumeWhitespace(int exception) |
DataException |
exception(Throwable exception) |
long |
getColumn() |
void |
match(char expectedChar) |
void |
match(char[] expectedString) |
void |
match(char[] expectedString,
String failureMessage) |
void |
match(CharSequence expectedString) |
void |
match(CharSequence expectedString,
String failureMessage) |
void |
match(char expectedChar,
String failureMessage) |
StringBuilder |
matchUntil(char terminatingChar) |
StringBuilder |
matchUntil(char terminatingChar,
String failureMessage) |
StringBuilder |
matchUntilEof() |
int |
peek(int index) |
CharSequence |
peekSequence(int offset,
int length) |
boolean |
peekString(char[] lookahead) |
boolean |
peekString(CharSequence lookahead) |
int |
peekStringArray(char[][] lookahead) |
int |
peekStringArray(char[][] lookahead,
int offset) |
int |
peekStringArray(CharSequence... lookahead) |
int |
peekStringArray(CharSequence[] lookahead,
int offset) |
boolean |
peekStringOffset(char[] lookahead,
int offset) |
boolean |
peekStringOffset(CharSequence lookahead,
int offset) |
int |
peekWhitespaceLength(int index) |
int |
pop() |
boolean |
ready() |
public StringParser(String text)
public DataException exception(Throwable exception)
public boolean ready()
throws IOException
ready in interface IParserIOExceptionpublic CharSequence peekSequence(int offset, int length)
peekSequence in interface IParserpublic boolean peekString(CharSequence lookahead)
peekString in interface IParserpublic boolean peekStringOffset(CharSequence lookahead, int offset)
peekStringOffset in interface IParserpublic int peekStringArray(CharSequence... lookahead)
peekStringArray in interface IParserpublic int peekStringArray(CharSequence[] lookahead, int offset)
peekStringArray in interface IParserpublic void match(char expectedChar,
String failureMessage)
public void match(CharSequence expectedString, String failureMessage)
public void match(CharSequence expectedString)
public StringBuilder matchUntil(char terminatingChar)
matchUntil in interface IParserpublic StringBuilder matchUntil(char terminatingChar, String failureMessage)
matchUntil in interface IParserpublic StringBuilder matchUntilEof()
matchUntilEof in interface IParserpublic void consumeWhitespace()
consumeWhitespace in interface IParserpublic void consumeWhitespace(int exception)
consumeWhitespace in interface IParserpublic void consumeWhitespace(CharSequence exception)
consumeWhitespace in interface IParserpublic boolean peekString(char[] lookahead)
peekString in interface IParserpublic boolean peekStringOffset(char[] lookahead,
int offset)
peekStringOffset in interface IParserpublic int peekStringArray(char[][] lookahead)
peekStringArray in interface IParserpublic void match(char[] expectedString,
String failureMessage)
public void consumeWhitespace(char[] exception)
consumeWhitespace in interface IParserpublic int peekStringArray(char[][] lookahead,
int offset)
peekStringArray in interface IParserpublic int peekWhitespaceLength(int index)
peekWhitespaceLength in interface IParserCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.