public class StrParser extends Object
Constructor and Description |
---|
StrParser(String val) |
StrParser(String val,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
char |
ch() |
void |
eatws() |
void |
expect(String s) |
double |
getDouble() |
float |
getFloat() |
String |
getGlobbedId(String errMessage) |
String |
getId() |
String |
getId(String errMessage) |
int |
getInt() |
Number |
getNumber() |
String |
getQuotedString() |
String |
getSimpleString()
Skips leading whitespace and returns whatever sequence of non
whitespace it can find (or hte empty string)
|
Boolean |
getSortDirection()
Sort direction or null if current position does not indicate a
sort direction.
|
boolean |
opt(char ch) |
boolean |
opt(String s) |
char |
peek() |
char |
peekChar() |
void |
skip(int nChars) |
String |
toString() |
public String val
public int pos
public int end
public StrParser(String val)
public StrParser(String val, int start, int end)
public void eatws()
public char ch()
public void skip(int nChars)
public boolean opt(String s)
public boolean opt(char ch)
public void expect(String s) throws SyntaxError
SyntaxError
public float getFloat()
public Number getNumber()
public double getDouble()
public int getInt()
public String getId() throws SyntaxError
SyntaxError
public String getId(String errMessage) throws SyntaxError
SyntaxError
public String getGlobbedId(String errMessage) throws SyntaxError
SyntaxError
public String getSimpleString()
public Boolean getSortDirection() throws SyntaxError
SyntaxError
public String getQuotedString() throws SyntaxError
SyntaxError
public char peek()
public char peekChar()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.