Uses of Class
org.fusesource.hawtbuf.proto.compiler.TextFormat.ParseException
Packages that use TextFormat.ParseException
-
Uses of TextFormat.ParseException in org.fusesource.hawtbuf.proto.compiler
Methods in org.fusesource.hawtbuf.proto.compiler that return TextFormat.ParseExceptionModifier and TypeMethodDescriptionprivate TextFormat.ParseException
TextFormat.Tokenizer.floatParseException
(NumberFormatException e) Constructs an appropriateTextFormat.ParseException
for the givenNumberFormatException
when trying to parse a float or double.private TextFormat.ParseException
TextFormat.Tokenizer.integerParseException
(NumberFormatException e) Constructs an appropriateTextFormat.ParseException
for the givenNumberFormatException
when trying to parse an integer.TextFormat.Tokenizer.parseException
(String description) Returns aTextFormat.ParseException
with the current line and column numbers in the description, suitable for throwing.TextFormat.Tokenizer.parseExceptionPreviousToken
(String description) Returns aTextFormat.ParseException
with the line and column numbers of the previous token in the description, suitable for throwing.Methods in org.fusesource.hawtbuf.proto.compiler that throw TextFormat.ParseExceptionModifier and TypeMethodDescriptionvoid
If the next token exactly matchestoken
, consume it.boolean
TextFormat.Tokenizer.consumeBoolean()
If the next token is a boolean, consume it and return its value.TextFormat.Tokenizer.consumeBuffer()
If the next token is a string, consume it, unescape it as aBuffer
, 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.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.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.