| Package | Description |
|---|---|
| org.fusesource.hawtbuf.proto.compiler |
| Modifier and Type | Method and Description |
|---|---|
private TextFormat.ParseException |
TextFormat.Tokenizer.floatParseException(java.lang.NumberFormatException e)
Constructs an appropriate
TextFormat.ParseException for the given
NumberFormatException when trying to parse a float or double. |
private TextFormat.ParseException |
TextFormat.Tokenizer.integerParseException(java.lang.NumberFormatException e)
Constructs an appropriate
TextFormat.ParseException for the given
NumberFormatException when trying to parse an integer. |
TextFormat.ParseException |
TextFormat.Tokenizer.parseException(java.lang.String description)
Returns a
TextFormat.ParseException with the current line and column
numbers in the description, suitable for throwing. |
TextFormat.ParseException |
TextFormat.Tokenizer.parseExceptionPreviousToken(java.lang.String description)
Returns a
TextFormat.ParseException with the line and column numbers of
the previous token in the description, suitable for throwing. |
| Modifier and Type | Method and Description |
|---|---|
void |
TextFormat.Tokenizer.consume(java.lang.String token)
If the next token exactly matches
token, consume it. |
boolean |
TextFormat.Tokenizer.consumeBoolean()
If the next token is a boolean, consume it and return its value.
|
Buffer |
TextFormat.Tokenizer.consumeBuffer()
If the next token is a string, consume it, unescape it as a
Buffer, and return it. |
double |
TextFormat.Tokenizer.consumeDouble()
If the next token is a double, consume it and return its value.
|
float |
TextFormat.Tokenizer.consumeFloat()
If the next token is a float, consume it and return its value.
|
java.lang.String |
TextFormat.Tokenizer.consumeIdentifier()
If the next token is an identifier, consume it and return its value.
|
int |
TextFormat.Tokenizer.consumeInt32()
If the next token is a 32-bit signed integer, consume it and return its
value.
|
long |
TextFormat.Tokenizer.consumeInt64()
If the next token is a 64-bit signed integer, consume it and return its
value.
|
java.lang.String |
TextFormat.Tokenizer.consumeString()
If the next token is a string, consume it and return its (unescaped)
value.
|
int |
TextFormat.Tokenizer.consumeUInt32()
If the next token is a 32-bit unsigned integer, consume it and return its
value.
|
long |
TextFormat.Tokenizer.consumeUInt64()
If the next token is a 64-bit unsigned integer, consume it and return its
value.
|