Class ProtoParser
java.lang.Object
org.infinispan.protostream.impl.parser.ProtoParser
- All Implemented Interfaces:
ProtoParserConstants
Protocol Buffers parser.
-
Field Summary
Modifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.infinispan.protostream.impl.parser.ProtoParserConstants
ATTRIBUTE, BOOLEAN, COLON, COMMA, DEFAULT, DOT, DOUBLE, ENUM, EOF, EQ, FULLIDENT, GT, IDENT, IDSTATE, IMPORT, LBRACE, LBRACKET, LPAREN, LT, MAP, MAX, MESSAGE, NUMBER, ONEOF, OPTION, PACKAGE, PUBLIC, RBRACE, RBRACKET, RESERVED, RETURNS, RPAREN, RPC, SEMI_COLON, SERVICE, STREAM, STRLIT, SYNTAX, TO, tokenImage, WEAK
-
Constructor Summary
ConstructorDescriptionProtoParser
(InputStream stream) Constructor with InputStream.ProtoParser
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingProtoParser
(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Constant()
final void
Disable tracing.final void
final void
Enable tracing.final void
final void
final void
final String
EnumName()
final void
final void
final String
final void
final void
final String
Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final void
final void
final String
MapName()
final void
final void
final String
final void
final String
final void
final void
final String
final void
final String
final void
final FileDescriptor.Builder
Proto()
final void
final void
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final void
final void
final void
Rpc()
final String
RpcName()
final void
final String
final void
final void
final boolean
Trace enabled.final String
Type()
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
ProtoParser
Constructor with InputStream. -
ProtoParser
Constructor with InputStream and supplied encoding -
ProtoParser
Constructor. -
ProtoParser
Constructor with generated Token Manager.
-
-
Method Details
-
Proto
- Throws:
ParseException
-
EmptyStatement
- Throws:
ParseException
-
TopLevelDef
- Throws:
ParseException
-
Syntax
- Throws:
ParseException
-
Import
- Throws:
ParseException
-
Package
- Throws:
ParseException
-
Option
- Throws:
ParseException
-
Enum
- Throws:
ParseException
-
EnumBody
- Throws:
ParseException
-
EnumField
- Throws:
ParseException
-
EnumValueOption
- Throws:
ParseException
-
Field
- Throws:
ParseException
-
FieldOptions
- Throws:
ParseException
-
FieldOption
- Throws:
ParseException
-
MapField
- Throws:
ParseException
-
Message
- Throws:
ParseException
-
MessageBody
- Throws:
ParseException
-
MessageValue
- Throws:
ParseException
-
OneOf
- Throws:
ParseException
-
OneOfField
- Throws:
ParseException
-
Type
- Throws:
ParseException
-
Reserved
- Throws:
ParseException
-
Ranges
- Throws:
ParseException
-
Range
- Throws:
ParseException
-
ReservedNames
- Throws:
ParseException
-
Rpc
- Throws:
ParseException
-
Service
- Throws:
ParseException
-
Constant
- Throws:
ParseException
-
FullIdent
- Throws:
ParseException
-
MessageName
- Throws:
ParseException
-
EnumName
- Throws:
ParseException
-
FieldName
- Throws:
ParseException
-
OneOfName
- Throws:
ParseException
-
OptionName
- Throws:
ParseException
-
MapName
- Throws:
ParseException
-
ServiceName
- Throws:
ParseException
-
RpcName
- Throws:
ParseException
-
NamedType
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-