Package org.apache.avro.idl
Class IdlParser
java.lang.Object
org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
org.antlr.v4.runtime.Parser
org.apache.avro.idl.IdlParser
public class IdlParser
extends org.antlr.v4.runtime.Parser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from class org.antlr.v4.runtime.Parser
org.antlr.v4.runtime.Parser.TraceListener, org.antlr.v4.runtime.Parser.TrimToSizeListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.antlr.v4.runtime.atn.ATN
protected static final org.antlr.v4.runtime.dfa.DFA[]
static final String
protected static final org.antlr.v4.runtime.atn.PredictionContextCache
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
Deprecated.static final int
static final int
static final org.antlr.v4.runtime.Vocabulary
static final int
static final int
Fields inherited from class org.antlr.v4.runtime.Parser
_buildParseTrees, _ctx, _errHandler, _input, _parseListeners, _precedenceStack, _syntaxErrors, matchedEOF
Fields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfullType()
org.antlr.v4.runtime.atn.ATN
getATN()
String[]
String[]
Deprecated.org.antlr.v4.runtime.Vocabulary
final IdlParser.IdlFileContext
idlFile()
jsonPair()
final IdlParser.MapTypeContext
mapType()
Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContexts
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
Field Details
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA -
T__0
public static final int T__0- See Also:
-
DocComment
public static final int DocComment- See Also:
-
EmptyComment
public static final int EmptyComment- See Also:
-
MultiLineComment
public static final int MultiLineComment- See Also:
-
SingleLineComment
public static final int SingleLineComment- See Also:
-
WS
public static final int WS- See Also:
-
Protocol
public static final int Protocol- See Also:
-
Namespace
public static final int Namespace- See Also:
-
Import
public static final int Import- See Also:
-
IDL
public static final int IDL- See Also:
-
Schema
public static final int Schema- See Also:
-
Enum
public static final int Enum- See Also:
-
Fixed
public static final int Fixed- See Also:
-
Error
public static final int Error- See Also:
-
Record
public static final int Record- See Also:
-
Array
public static final int Array- See Also:
-
Map
public static final int Map- See Also:
-
Union
public static final int Union- See Also:
-
Boolean
public static final int Boolean- See Also:
-
Int
public static final int Int- See Also:
-
Long
public static final int Long- See Also:
-
Float
public static final int Float- See Also:
-
Double
public static final int Double- See Also:
-
String
public static final int String- See Also:
-
Bytes
public static final int Bytes- See Also:
-
Null
public static final int Null- See Also:
-
BTrue
public static final int BTrue- See Also:
-
BFalse
public static final int BFalse- See Also:
-
Decimal
public static final int Decimal- See Also:
-
Date
public static final int Date- See Also:
-
Time
public static final int Time- See Also:
-
Timestamp
public static final int Timestamp- See Also:
-
LocalTimestamp
public static final int LocalTimestamp- See Also:
-
UUID
public static final int UUID- See Also:
-
Void
public static final int Void- See Also:
-
Oneway
public static final int Oneway- See Also:
-
Throws
public static final int Throws- See Also:
-
LParen
public static final int LParen- See Also:
-
RParen
public static final int RParen- See Also:
-
LBrace
public static final int LBrace- See Also:
-
RBrace
public static final int RBrace- See Also:
-
LBracket
public static final int LBracket- See Also:
-
RBracket
public static final int RBracket- See Also:
-
Colon
public static final int Colon- See Also:
-
Semicolon
public static final int Semicolon- See Also:
-
Comma
public static final int Comma- See Also:
-
At
public static final int At- See Also:
-
Equals
public static final int Equals- See Also:
-
Dot
public static final int Dot- See Also:
-
Dash
public static final int Dash- See Also:
-
QuestionMark
public static final int QuestionMark- See Also:
-
LT
public static final int LT- See Also:
-
GT
public static final int GT- See Also:
-
StringLiteral
public static final int StringLiteral- See Also:
-
IntegerLiteral
public static final int IntegerLiteral- See Also:
-
FloatingPointLiteral
public static final int FloatingPointLiteral- See Also:
-
IdentifierToken
public static final int IdentifierToken- See Also:
-
RULE_idlFile
public static final int RULE_idlFile- See Also:
-
RULE_protocolDeclaration
public static final int RULE_protocolDeclaration- See Also:
-
RULE_protocolDeclarationBody
public static final int RULE_protocolDeclarationBody- See Also:
-
RULE_namespaceDeclaration
public static final int RULE_namespaceDeclaration- See Also:
-
RULE_mainSchemaDeclaration
public static final int RULE_mainSchemaDeclaration- See Also:
-
RULE_identifier
public static final int RULE_identifier- See Also:
-
RULE_schemaProperty
public static final int RULE_schemaProperty- See Also:
-
RULE_importStatement
public static final int RULE_importStatement- See Also:
-
RULE_namedSchemaDeclaration
public static final int RULE_namedSchemaDeclaration- See Also:
-
RULE_fixedDeclaration
public static final int RULE_fixedDeclaration- See Also:
-
RULE_enumDeclaration
public static final int RULE_enumDeclaration- See Also:
-
RULE_enumSymbol
public static final int RULE_enumSymbol- See Also:
-
RULE_enumDefault
public static final int RULE_enumDefault- See Also:
-
RULE_recordDeclaration
public static final int RULE_recordDeclaration- See Also:
-
RULE_recordBody
public static final int RULE_recordBody- See Also:
-
RULE_fieldDeclaration
public static final int RULE_fieldDeclaration- See Also:
-
RULE_variableDeclaration
public static final int RULE_variableDeclaration- See Also:
-
RULE_messageDeclaration
public static final int RULE_messageDeclaration- See Also:
-
RULE_formalParameter
public static final int RULE_formalParameter- See Also:
-
RULE_resultType
public static final int RULE_resultType- See Also:
-
RULE_fullType
public static final int RULE_fullType- See Also:
-
RULE_plainType
public static final int RULE_plainType- See Also:
-
RULE_nullableType
public static final int RULE_nullableType- See Also:
-
RULE_primitiveType
public static final int RULE_primitiveType- See Also:
-
RULE_arrayType
public static final int RULE_arrayType- See Also:
-
RULE_mapType
public static final int RULE_mapType- See Also:
-
RULE_unionType
public static final int RULE_unionType- See Also:
-
RULE_jsonValue
public static final int RULE_jsonValue- See Also:
-
RULE_jsonLiteral
public static final int RULE_jsonLiteral- See Also:
-
RULE_jsonObject
public static final int RULE_jsonObject- See Also:
-
RULE_jsonPair
public static final int RULE_jsonPair- See Also:
-
RULE_jsonArray
public static final int RULE_jsonArray- See Also:
-
ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY -
tokenNames
Deprecated.UseVOCABULARY
instead. -
_serializedATN
- See Also:
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Constructor Details
-
IdlParser
public IdlParser(org.antlr.v4.runtime.TokenStream input)
-
-
Method Details
-
getTokenNames
Deprecated.- Specified by:
getTokenNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getGrammarFileName
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
idlFile
- Throws:
org.antlr.v4.runtime.RecognitionException
-
protocolDeclaration
public final IdlParser.ProtocolDeclarationContext protocolDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
protocolDeclarationBody
public final IdlParser.ProtocolDeclarationBodyContext protocolDeclarationBody() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
namespaceDeclaration
public final IdlParser.NamespaceDeclarationContext namespaceDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
mainSchemaDeclaration
public final IdlParser.MainSchemaDeclarationContext mainSchemaDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
identifier
public final IdlParser.IdentifierContext identifier() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
schemaProperty
public final IdlParser.SchemaPropertyContext schemaProperty() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
importStatement
public final IdlParser.ImportStatementContext importStatement() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
namedSchemaDeclaration
public final IdlParser.NamedSchemaDeclarationContext namedSchemaDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
fixedDeclaration
public final IdlParser.FixedDeclarationContext fixedDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
enumDeclaration
public final IdlParser.EnumDeclarationContext enumDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
enumSymbol
public final IdlParser.EnumSymbolContext enumSymbol() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
enumDefault
public final IdlParser.EnumDefaultContext enumDefault() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
recordDeclaration
public final IdlParser.RecordDeclarationContext recordDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
recordBody
public final IdlParser.RecordBodyContext recordBody() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
fieldDeclaration
public final IdlParser.FieldDeclarationContext fieldDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
variableDeclaration
public final IdlParser.VariableDeclarationContext variableDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
messageDeclaration
public final IdlParser.MessageDeclarationContext messageDeclaration() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
formalParameter
public final IdlParser.FormalParameterContext formalParameter() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
resultType
public final IdlParser.ResultTypeContext resultType() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
fullType
- Throws:
org.antlr.v4.runtime.RecognitionException
-
plainType
public final IdlParser.PlainTypeContext plainType() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
nullableType
public final IdlParser.NullableTypeContext nullableType() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
primitiveType
public final IdlParser.PrimitiveTypeContext primitiveType() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
arrayType
public final IdlParser.ArrayTypeContext arrayType() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
mapType
- Throws:
org.antlr.v4.runtime.RecognitionException
-
unionType
public final IdlParser.UnionTypeContext unionType() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
jsonValue
public final IdlParser.JsonValueContext jsonValue() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
jsonLiteral
public final IdlParser.JsonLiteralContext jsonLiteral() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
jsonObject
public final IdlParser.JsonObjectContext jsonObject() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
jsonPair
- Throws:
org.antlr.v4.runtime.RecognitionException
-
jsonArray
public final IdlParser.JsonArrayContext jsonArray() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
VOCABULARY
instead.