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 IParser
IOException
public CharSequence peekSequence(int offset, int length)
peekSequence
in interface IParser
public boolean peekString(CharSequence lookahead)
peekString
in interface IParser
public boolean peekStringOffset(CharSequence lookahead, int offset)
peekStringOffset
in interface IParser
public int peekStringArray(CharSequence... lookahead)
peekStringArray
in interface IParser
public int peekStringArray(CharSequence[] lookahead, int offset)
peekStringArray
in interface IParser
public 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 IParser
public StringBuilder matchUntil(char terminatingChar, String failureMessage)
matchUntil
in interface IParser
public StringBuilder matchUntilEof()
matchUntilEof
in interface IParser
public void consumeWhitespace()
consumeWhitespace
in interface IParser
public void consumeWhitespace(int exception)
consumeWhitespace
in interface IParser
public void consumeWhitespace(CharSequence exception)
consumeWhitespace
in interface IParser
public boolean peekString(char[] lookahead)
peekString
in interface IParser
public boolean peekStringOffset(char[] lookahead, int offset)
peekStringOffset
in interface IParser
public int peekStringArray(char[][] lookahead)
peekStringArray
in interface IParser
public void match(char[] expectedString, String failureMessage)
public void consumeWhitespace(char[] exception)
consumeWhitespace
in interface IParser
public int peekStringArray(char[][] lookahead, int offset)
peekStringArray
in interface IParser
public int peekWhitespaceLength(int index)
peekWhitespaceLength
in interface IParser
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.