apoc.custom.SignatureParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apoc-common Show documentation
Show all versions of apoc-common Show documentation
Data types package for Neo4j Procedures
// Generated from apoc/custom/Signature.g4 by ANTLR 4.7.2
package apoc.custom;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class SignatureParser extends Parser {
static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24,
T__24=25, T__25=26, T__26=27, T__27=28, T__28=29, T__29=30, T__30=31,
T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, T__36=37, T__37=38,
T__38=39, T__39=40, T__40=41, T__41=42, T__42=43, T__43=44, NEWLINE=45,
QUOTED_IDENTIFIER=46, IDENTIFIER=47, WS=48, INT_VALUE=49, FLOAT_VALUE=50,
QUOTED_STRING_VALUE=51, PLAIN_STRING_VALUE=52;
public static final int
RULE_procedure = 0, RULE_function = 1, RULE_results = 2, RULE_parameter = 3,
RULE_result = 4, RULE_namespace = 5, RULE_name = 6, RULE_empty = 7, RULE_type = 8,
RULE_defaultValue = 9, RULE_list_type = 10, RULE_opt_type = 11, RULE_base_type = 12,
RULE_value = 13, RULE_boolValue = 14, RULE_stringValue = 15, RULE_nullValue = 16,
RULE_listValue = 17, RULE_mapValue = 18;
private static String[] makeRuleNames() {
return new String[] {
"procedure", "function", "results", "parameter", "result", "namespace",
"name", "empty", "type", "defaultValue", "list_type", "opt_type", "base_type",
"value", "boolValue", "stringValue", "nullValue", "listValue", "mapValue"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'('", "','", "')'", "'::'", "'='", "'.'", "'VOID'", "'LIST'",
"'?'", "' OF '", "'MAP'", "'ANY'", "'NODE'", "'REL'", "'RELATIONSHIP'",
"'EDGE'", "'PATH'", "'NUMBER'", "'LONG'", "'INT'", "'INTEGER'", "'FLOAT'",
"'DOUBLE'", "'BOOL'", "'BOOLEAN'", "'DATE'", "'TIME'", "'LOCALTIME'",
"'DATETIME'", "'LOCALDATETIME'", "'DURATION'", "'POINT'", "'GEO'", "'GEOMETRY'",
"'STRING'", "'TEXT'", "'true'", "'false'", "'null'", "'['", "']'", "'{'",
"':'", "'}'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, "NEWLINE", "QUOTED_IDENTIFIER",
"IDENTIFIER", "WS", "INT_VALUE", "FLOAT_VALUE", "QUOTED_STRING_VALUE",
"PLAIN_STRING_VALUE"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
/**
* @deprecated Use {@link #VOCABULARY} instead.
*/
@Deprecated
public static final String[] tokenNames;
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
tokenNames[i] = VOCABULARY.getLiteralName(i);
if (tokenNames[i] == null) {
tokenNames[i] = VOCABULARY.getSymbolicName(i);
}
if (tokenNames[i] == null) {
tokenNames[i] = "";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
@Override
public String getGrammarFileName() { return "Signature.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public SignatureParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
public static class ProcedureContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ResultsContext results() {
return getRuleContext(ResultsContext.class,0);
}
public NamespaceContext namespace() {
return getRuleContext(NamespaceContext.class,0);
}
public List parameter() {
return getRuleContexts(ParameterContext.class);
}
public ParameterContext parameter(int i) {
return getRuleContext(ParameterContext.class,i);
}
public ProcedureContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_procedure; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterProcedure(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitProcedure(this);
}
}
public final ProcedureContext procedure() throws RecognitionException {
ProcedureContext _localctx = new ProcedureContext(_ctx, getState());
enterRule(_localctx, 0, RULE_procedure);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(39);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,0,_ctx) ) {
case 1:
{
setState(38);
namespace();
}
break;
}
setState(41);
name();
setState(42);
match(T__0);
setState(48);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,1,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(43);
parameter();
setState(44);
match(T__1);
}
}
}
setState(50);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,1,_ctx);
}
setState(52);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==QUOTED_IDENTIFIER || _la==IDENTIFIER) {
{
setState(51);
parameter();
}
}
setState(54);
match(T__2);
setState(55);
match(T__3);
setState(56);
results();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class FunctionContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public NamespaceContext namespace() {
return getRuleContext(NamespaceContext.class,0);
}
public List parameter() {
return getRuleContexts(ParameterContext.class);
}
public ParameterContext parameter(int i) {
return getRuleContext(ParameterContext.class,i);
}
public FunctionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_function; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterFunction(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitFunction(this);
}
}
public final FunctionContext function() throws RecognitionException {
FunctionContext _localctx = new FunctionContext(_ctx, getState());
enterRule(_localctx, 2, RULE_function);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(59);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) {
case 1:
{
setState(58);
namespace();
}
break;
}
setState(61);
name();
setState(62);
match(T__0);
setState(68);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,4,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(63);
parameter();
setState(64);
match(T__1);
}
}
}
setState(70);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,4,_ctx);
}
setState(72);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==QUOTED_IDENTIFIER || _la==IDENTIFIER) {
{
setState(71);
parameter();
}
}
setState(74);
match(T__2);
setState(75);
match(T__3);
setState(81);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__7:
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case T__15:
case T__16:
case T__17:
case T__18:
case T__19:
case T__20:
case T__21:
case T__22:
case T__23:
case T__24:
case T__25:
case T__26:
case T__27:
case T__28:
case T__29:
case T__30:
case T__31:
case T__32:
case T__33:
case T__34:
case T__35:
{
setState(76);
type();
}
break;
case T__0:
{
setState(77);
match(T__0);
setState(78);
type();
setState(79);
match(T__2);
}
break;
default:
throw new NoViableAltException(this);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ResultsContext extends ParserRuleContext {
public EmptyContext empty() {
return getRuleContext(EmptyContext.class,0);
}
public List result() {
return getRuleContexts(ResultContext.class);
}
public ResultContext result(int i) {
return getRuleContext(ResultContext.class,i);
}
public ResultsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_results; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterResults(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitResults(this);
}
}
public final ResultsContext results() throws RecognitionException {
ResultsContext _localctx = new ResultsContext(_ctx, getState());
enterRule(_localctx, 4, RULE_results);
try {
int _alt;
setState(96);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__6:
enterOuterAlt(_localctx, 1);
{
setState(83);
empty();
}
break;
case T__0:
enterOuterAlt(_localctx, 2);
{
setState(84);
match(T__0);
setState(90);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,7,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(85);
result();
setState(86);
match(T__1);
}
}
}
setState(92);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,7,_ctx);
}
{
setState(93);
result();
}
setState(94);
match(T__2);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ParameterContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public DefaultValueContext defaultValue() {
return getRuleContext(DefaultValueContext.class,0);
}
public ParameterContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_parameter; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterParameter(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitParameter(this);
}
}
public final ParameterContext parameter() throws RecognitionException {
ParameterContext _localctx = new ParameterContext(_ctx, getState());
enterRule(_localctx, 6, RULE_parameter);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(98);
name();
setState(101);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__4) {
{
setState(99);
match(T__4);
setState(100);
defaultValue();
}
}
setState(103);
match(T__3);
setState(104);
type();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ResultContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public ResultContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_result; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterResult(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitResult(this);
}
}
public final ResultContext result() throws RecognitionException {
ResultContext _localctx = new ResultContext(_ctx, getState());
enterRule(_localctx, 8, RULE_result);
try {
enterOuterAlt(_localctx, 1);
{
setState(106);
name();
setState(107);
match(T__3);
setState(108);
type();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NamespaceContext extends ParserRuleContext {
public List name() {
return getRuleContexts(NameContext.class);
}
public NameContext name(int i) {
return getRuleContext(NameContext.class,i);
}
public NamespaceContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_namespace; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterNamespace(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitNamespace(this);
}
}
public final NamespaceContext namespace() throws RecognitionException {
NamespaceContext _localctx = new NamespaceContext(_ctx, getState());
enterRule(_localctx, 10, RULE_namespace);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(113);
_errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
setState(110);
name();
setState(111);
match(T__5);
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(115);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,10,_ctx);
} while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NameContext extends ParserRuleContext {
public TerminalNode IDENTIFIER() { return getToken(SignatureParser.IDENTIFIER, 0); }
public TerminalNode QUOTED_IDENTIFIER() { return getToken(SignatureParser.QUOTED_IDENTIFIER, 0); }
public NameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_name; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitName(this);
}
}
public final NameContext name() throws RecognitionException {
NameContext _localctx = new NameContext(_ctx, getState());
enterRule(_localctx, 12, RULE_name);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(117);
_la = _input.LA(1);
if ( !(_la==QUOTED_IDENTIFIER || _la==IDENTIFIER) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EmptyContext extends ParserRuleContext {
public EmptyContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_empty; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterEmpty(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitEmpty(this);
}
}
public final EmptyContext empty() throws RecognitionException {
EmptyContext _localctx = new EmptyContext(_ctx, getState());
enterRule(_localctx, 14, RULE_empty);
try {
enterOuterAlt(_localctx, 1);
{
setState(119);
match(T__6);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeContext extends ParserRuleContext {
public Opt_typeContext opt_type() {
return getRuleContext(Opt_typeContext.class,0);
}
public List_typeContext list_type() {
return getRuleContext(List_typeContext.class,0);
}
public TypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_type; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitType(this);
}
}
public final TypeContext type() throws RecognitionException {
TypeContext _localctx = new TypeContext(_ctx, getState());
enterRule(_localctx, 16, RULE_type);
try {
setState(123);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__10:
case T__11:
case T__12:
case T__13:
case T__14:
case T__15:
case T__16:
case T__17:
case T__18:
case T__19:
case T__20:
case T__21:
case T__22:
case T__23:
case T__24:
case T__25:
case T__26:
case T__27:
case T__28:
case T__29:
case T__30:
case T__31:
case T__32:
case T__33:
case T__34:
case T__35:
enterOuterAlt(_localctx, 1);
{
setState(121);
opt_type();
}
break;
case T__7:
enterOuterAlt(_localctx, 2);
{
setState(122);
list_type();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DefaultValueContext extends ParserRuleContext {
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public DefaultValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_defaultValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterDefaultValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitDefaultValue(this);
}
}
public final DefaultValueContext defaultValue() throws RecognitionException {
DefaultValueContext _localctx = new DefaultValueContext(_ctx, getState());
enterRule(_localctx, 18, RULE_defaultValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(125);
value();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class List_typeContext extends ParserRuleContext {
public Opt_typeContext opt_type() {
return getRuleContext(Opt_typeContext.class,0);
}
public List_typeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_list_type; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterList_type(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitList_type(this);
}
}
public final List_typeContext list_type() throws RecognitionException {
List_typeContext _localctx = new List_typeContext(_ctx, getState());
enterRule(_localctx, 20, RULE_list_type);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(127);
match(T__7);
setState(129);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(128);
match(T__8);
}
}
setState(132);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(131);
match(T__9);
}
}
setState(134);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==T__9 );
setState(136);
opt_type();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Opt_typeContext extends ParserRuleContext {
public Base_typeContext base_type() {
return getRuleContext(Base_typeContext.class,0);
}
public Opt_typeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_opt_type; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterOpt_type(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitOpt_type(this);
}
}
public final Opt_typeContext opt_type() throws RecognitionException {
Opt_typeContext _localctx = new Opt_typeContext(_ctx, getState());
enterRule(_localctx, 22, RULE_opt_type);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(138);
base_type();
setState(140);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__8) {
{
setState(139);
match(T__8);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class Base_typeContext extends ParserRuleContext {
public Base_typeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_base_type; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterBase_type(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitBase_type(this);
}
}
public final Base_typeContext base_type() throws RecognitionException {
Base_typeContext _localctx = new Base_typeContext(_ctx, getState());
enterRule(_localctx, 24, RULE_base_type);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(142);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__10) | (1L << T__11) | (1L << T__12) | (1L << T__13) | (1L << T__14) | (1L << T__15) | (1L << T__16) | (1L << T__17) | (1L << T__18) | (1L << T__19) | (1L << T__20) | (1L << T__21) | (1L << T__22) | (1L << T__23) | (1L << T__24) | (1L << T__25) | (1L << T__26) | (1L << T__27) | (1L << T__28) | (1L << T__29) | (1L << T__30) | (1L << T__31) | (1L << T__32) | (1L << T__33) | (1L << T__34) | (1L << T__35))) != 0)) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ValueContext extends ParserRuleContext {
public NullValueContext nullValue() {
return getRuleContext(NullValueContext.class,0);
}
public TerminalNode INT_VALUE() { return getToken(SignatureParser.INT_VALUE, 0); }
public TerminalNode FLOAT_VALUE() { return getToken(SignatureParser.FLOAT_VALUE, 0); }
public BoolValueContext boolValue() {
return getRuleContext(BoolValueContext.class,0);
}
public MapValueContext mapValue() {
return getRuleContext(MapValueContext.class,0);
}
public ListValueContext listValue() {
return getRuleContext(ListValueContext.class,0);
}
public StringValueContext stringValue() {
return getRuleContext(StringValueContext.class,0);
}
public ValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_value; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitValue(this);
}
}
public final ValueContext value() throws RecognitionException {
ValueContext _localctx = new ValueContext(_ctx, getState());
enterRule(_localctx, 26, RULE_value);
try {
setState(151);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__38:
enterOuterAlt(_localctx, 1);
{
setState(144);
nullValue();
}
break;
case INT_VALUE:
enterOuterAlt(_localctx, 2);
{
setState(145);
match(INT_VALUE);
}
break;
case FLOAT_VALUE:
enterOuterAlt(_localctx, 3);
{
setState(146);
match(FLOAT_VALUE);
}
break;
case T__36:
case T__37:
enterOuterAlt(_localctx, 4);
{
setState(147);
boolValue();
}
break;
case T__41:
enterOuterAlt(_localctx, 5);
{
setState(148);
mapValue();
}
break;
case T__39:
enterOuterAlt(_localctx, 6);
{
setState(149);
listValue();
}
break;
case QUOTED_STRING_VALUE:
case PLAIN_STRING_VALUE:
enterOuterAlt(_localctx, 7);
{
setState(150);
stringValue();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class BoolValueContext extends ParserRuleContext {
public BoolValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_boolValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterBoolValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitBoolValue(this);
}
}
public final BoolValueContext boolValue() throws RecognitionException {
BoolValueContext _localctx = new BoolValueContext(_ctx, getState());
enterRule(_localctx, 28, RULE_boolValue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(153);
_la = _input.LA(1);
if ( !(_la==T__36 || _la==T__37) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class StringValueContext extends ParserRuleContext {
public TerminalNode QUOTED_STRING_VALUE() { return getToken(SignatureParser.QUOTED_STRING_VALUE, 0); }
public TerminalNode PLAIN_STRING_VALUE() { return getToken(SignatureParser.PLAIN_STRING_VALUE, 0); }
public StringValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_stringValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterStringValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitStringValue(this);
}
}
public final StringValueContext stringValue() throws RecognitionException {
StringValueContext _localctx = new StringValueContext(_ctx, getState());
enterRule(_localctx, 30, RULE_stringValue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(155);
_la = _input.LA(1);
if ( !(_la==QUOTED_STRING_VALUE || _la==PLAIN_STRING_VALUE) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NullValueContext extends ParserRuleContext {
public NullValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_nullValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterNullValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitNullValue(this);
}
}
public final NullValueContext nullValue() throws RecognitionException {
NullValueContext _localctx = new NullValueContext(_ctx, getState());
enterRule(_localctx, 32, RULE_nullValue);
try {
enterOuterAlt(_localctx, 1);
{
setState(157);
match(T__38);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ListValueContext extends ParserRuleContext {
public List value() {
return getRuleContexts(ValueContext.class);
}
public ValueContext value(int i) {
return getRuleContext(ValueContext.class,i);
}
public ListValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_listValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterListValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitListValue(this);
}
}
public final ListValueContext listValue() throws RecognitionException {
ListValueContext _localctx = new ListValueContext(_ctx, getState());
enterRule(_localctx, 34, RULE_listValue);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(159);
match(T__39);
setState(169);
_errHandler.sync(this);
_la = _input.LA(1);
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__36) | (1L << T__37) | (1L << T__38) | (1L << T__39) | (1L << T__41) | (1L << INT_VALUE) | (1L << FLOAT_VALUE) | (1L << QUOTED_STRING_VALUE) | (1L << PLAIN_STRING_VALUE))) != 0)) {
{
setState(165);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,16,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(160);
value();
setState(161);
match(T__1);
}
}
}
setState(167);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,16,_ctx);
}
setState(168);
value();
}
}
setState(171);
match(T__40);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class MapValueContext extends ParserRuleContext {
public List name() {
return getRuleContexts(NameContext.class);
}
public NameContext name(int i) {
return getRuleContext(NameContext.class,i);
}
public List value() {
return getRuleContexts(ValueContext.class);
}
public ValueContext value(int i) {
return getRuleContext(ValueContext.class,i);
}
public MapValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_mapValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).enterMapValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof SignatureListener ) ((SignatureListener)listener).exitMapValue(this);
}
}
public final MapValueContext mapValue() throws RecognitionException {
MapValueContext _localctx = new MapValueContext(_ctx, getState());
enterRule(_localctx, 36, RULE_mapValue);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(173);
match(T__41);
setState(204);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,20,_ctx) ) {
case 1:
{
setState(182);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,18,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
{
setState(174);
name();
setState(175);
match(T__42);
setState(176);
value();
}
setState(178);
match(T__1);
}
}
}
setState(184);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,18,_ctx);
}
{
setState(185);
name();
setState(186);
match(T__42);
setState(187);
value();
}
}
break;
case 2:
{
setState(197);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,19,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
{
setState(189);
name();
setState(190);
match(T__4);
setState(191);
value();
}
setState(193);
match(T__1);
}
}
}
setState(199);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,19,_ctx);
}
{
setState(200);
name();
setState(201);
match(T__4);
setState(202);
value();
}
}
break;
}
setState(206);
match(T__43);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\66\u00d3\4\2\t\2"+
"\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+
"\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
"\4\23\t\23\4\24\t\24\3\2\5\2*\n\2\3\2\3\2\3\2\3\2\3\2\7\2\61\n\2\f\2\16"+
"\2\64\13\2\3\2\5\2\67\n\2\3\2\3\2\3\2\3\2\3\3\5\3>\n\3\3\3\3\3\3\3\3\3"+
"\3\3\7\3E\n\3\f\3\16\3H\13\3\3\3\5\3K\n\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3"+
"\5\3T\n\3\3\4\3\4\3\4\3\4\3\4\7\4[\n\4\f\4\16\4^\13\4\3\4\3\4\3\4\5\4"+
"c\n\4\3\5\3\5\3\5\5\5h\n\5\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\7\3\7\3\7\6\7"+
"t\n\7\r\7\16\7u\3\b\3\b\3\t\3\t\3\n\3\n\5\n~\n\n\3\13\3\13\3\f\3\f\5\f"+
"\u0084\n\f\3\f\6\f\u0087\n\f\r\f\16\f\u0088\3\f\3\f\3\r\3\r\5\r\u008f"+
"\n\r\3\16\3\16\3\17\3\17\3\17\3\17\3\17\3\17\3\17\5\17\u009a\n\17\3\20"+
"\3\20\3\21\3\21\3\22\3\22\3\23\3\23\3\23\3\23\7\23\u00a6\n\23\f\23\16"+
"\23\u00a9\13\23\3\23\5\23\u00ac\n\23\3\23\3\23\3\24\3\24\3\24\3\24\3\24"+
"\3\24\3\24\7\24\u00b7\n\24\f\24\16\24\u00ba\13\24\3\24\3\24\3\24\3\24"+
"\3\24\3\24\3\24\3\24\3\24\3\24\7\24\u00c6\n\24\f\24\16\24\u00c9\13\24"+
"\3\24\3\24\3\24\3\24\5\24\u00cf\n\24\3\24\3\24\3\24\2\2\25\2\4\6\b\n\f"+
"\16\20\22\24\26\30\32\34\36 \"$&\2\6\3\2\60\61\3\2\r&\3\2\'(\3\2\65\66"+
"\2\u00da\2)\3\2\2\2\4=\3\2\2\2\6b\3\2\2\2\bd\3\2\2\2\nl\3\2\2\2\fs\3\2"+
"\2\2\16w\3\2\2\2\20y\3\2\2\2\22}\3\2\2\2\24\177\3\2\2\2\26\u0081\3\2\2"+
"\2\30\u008c\3\2\2\2\32\u0090\3\2\2\2\34\u0099\3\2\2\2\36\u009b\3\2\2\2"+
" \u009d\3\2\2\2\"\u009f\3\2\2\2$\u00a1\3\2\2\2&\u00af\3\2\2\2(*\5\f\7"+
"\2)(\3\2\2\2)*\3\2\2\2*+\3\2\2\2+,\5\16\b\2,\62\7\3\2\2-.\5\b\5\2./\7"+
"\4\2\2/\61\3\2\2\2\60-\3\2\2\2\61\64\3\2\2\2\62\60\3\2\2\2\62\63\3\2\2"+
"\2\63\66\3\2\2\2\64\62\3\2\2\2\65\67\5\b\5\2\66\65\3\2\2\2\66\67\3\2\2"+
"\2\678\3\2\2\289\7\5\2\29:\7\6\2\2:;\5\6\4\2;\3\3\2\2\2<>\5\f\7\2=<\3"+
"\2\2\2=>\3\2\2\2>?\3\2\2\2?@\5\16\b\2@F\7\3\2\2AB\5\b\5\2BC\7\4\2\2CE"+
"\3\2\2\2DA\3\2\2\2EH\3\2\2\2FD\3\2\2\2FG\3\2\2\2GJ\3\2\2\2HF\3\2\2\2I"+
"K\5\b\5\2JI\3\2\2\2JK\3\2\2\2KL\3\2\2\2LM\7\5\2\2MS\7\6\2\2NT\5\22\n\2"+
"OP\7\3\2\2PQ\5\22\n\2QR\7\5\2\2RT\3\2\2\2SN\3\2\2\2SO\3\2\2\2T\5\3\2\2"+
"\2Uc\5\20\t\2V\\\7\3\2\2WX\5\n\6\2XY\7\4\2\2Y[\3\2\2\2ZW\3\2\2\2[^\3\2"+
"\2\2\\Z\3\2\2\2\\]\3\2\2\2]_\3\2\2\2^\\\3\2\2\2_`\5\n\6\2`a\7\5\2\2ac"+
"\3\2\2\2bU\3\2\2\2bV\3\2\2\2c\7\3\2\2\2dg\5\16\b\2ef\7\7\2\2fh\5\24\13"+
"\2ge\3\2\2\2gh\3\2\2\2hi\3\2\2\2ij\7\6\2\2jk\5\22\n\2k\t\3\2\2\2lm\5\16"+
"\b\2mn\7\6\2\2no\5\22\n\2o\13\3\2\2\2pq\5\16\b\2qr\7\b\2\2rt\3\2\2\2s"+
"p\3\2\2\2tu\3\2\2\2us\3\2\2\2uv\3\2\2\2v\r\3\2\2\2wx\t\2\2\2x\17\3\2\2"+
"\2yz\7\t\2\2z\21\3\2\2\2{~\5\30\r\2|~\5\26\f\2}{\3\2\2\2}|\3\2\2\2~\23"+
"\3\2\2\2\177\u0080\5\34\17\2\u0080\25\3\2\2\2\u0081\u0083\7\n\2\2\u0082"+
"\u0084\7\13\2\2\u0083\u0082\3\2\2\2\u0083\u0084\3\2\2\2\u0084\u0086\3"+
"\2\2\2\u0085\u0087\7\f\2\2\u0086\u0085\3\2\2\2\u0087\u0088\3\2\2\2\u0088"+
"\u0086\3\2\2\2\u0088\u0089\3\2\2\2\u0089\u008a\3\2\2\2\u008a\u008b\5\30"+
"\r\2\u008b\27\3\2\2\2\u008c\u008e\5\32\16\2\u008d\u008f\7\13\2\2\u008e"+
"\u008d\3\2\2\2\u008e\u008f\3\2\2\2\u008f\31\3\2\2\2\u0090\u0091\t\3\2"+
"\2\u0091\33\3\2\2\2\u0092\u009a\5\"\22\2\u0093\u009a\7\63\2\2\u0094\u009a"+
"\7\64\2\2\u0095\u009a\5\36\20\2\u0096\u009a\5&\24\2\u0097\u009a\5$\23"+
"\2\u0098\u009a\5 \21\2\u0099\u0092\3\2\2\2\u0099\u0093\3\2\2\2\u0099\u0094"+
"\3\2\2\2\u0099\u0095\3\2\2\2\u0099\u0096\3\2\2\2\u0099\u0097\3\2\2\2\u0099"+
"\u0098\3\2\2\2\u009a\35\3\2\2\2\u009b\u009c\t\4\2\2\u009c\37\3\2\2\2\u009d"+
"\u009e\t\5\2\2\u009e!\3\2\2\2\u009f\u00a0\7)\2\2\u00a0#\3\2\2\2\u00a1"+
"\u00ab\7*\2\2\u00a2\u00a3\5\34\17\2\u00a3\u00a4\7\4\2\2\u00a4\u00a6\3"+
"\2\2\2\u00a5\u00a2\3\2\2\2\u00a6\u00a9\3\2\2\2\u00a7\u00a5\3\2\2\2\u00a7"+
"\u00a8\3\2\2\2\u00a8\u00aa\3\2\2\2\u00a9\u00a7\3\2\2\2\u00aa\u00ac\5\34"+
"\17\2\u00ab\u00a7\3\2\2\2\u00ab\u00ac\3\2\2\2\u00ac\u00ad\3\2\2\2\u00ad"+
"\u00ae\7+\2\2\u00ae%\3\2\2\2\u00af\u00ce\7,\2\2\u00b0\u00b1\5\16\b\2\u00b1"+
"\u00b2\7-\2\2\u00b2\u00b3\5\34\17\2\u00b3\u00b4\3\2\2\2\u00b4\u00b5\7"+
"\4\2\2\u00b5\u00b7\3\2\2\2\u00b6\u00b0\3\2\2\2\u00b7\u00ba\3\2\2\2\u00b8"+
"\u00b6\3\2\2\2\u00b8\u00b9\3\2\2\2\u00b9\u00bb\3\2\2\2\u00ba\u00b8\3\2"+
"\2\2\u00bb\u00bc\5\16\b\2\u00bc\u00bd\7-\2\2\u00bd\u00be\5\34\17\2\u00be"+
"\u00cf\3\2\2\2\u00bf\u00c0\5\16\b\2\u00c0\u00c1\7\7\2\2\u00c1\u00c2\5"+
"\34\17\2\u00c2\u00c3\3\2\2\2\u00c3\u00c4\7\4\2\2\u00c4\u00c6\3\2\2\2\u00c5"+
"\u00bf\3\2\2\2\u00c6\u00c9\3\2\2\2\u00c7\u00c5\3\2\2\2\u00c7\u00c8\3\2"+
"\2\2\u00c8\u00ca\3\2\2\2\u00c9\u00c7\3\2\2\2\u00ca\u00cb\5\16\b\2\u00cb"+
"\u00cc\7\7\2\2\u00cc\u00cd\5\34\17\2\u00cd\u00cf\3\2\2\2\u00ce\u00b8\3"+
"\2\2\2\u00ce\u00c7\3\2\2\2\u00ce\u00cf\3\2\2\2\u00cf\u00d0\3\2\2\2\u00d0"+
"\u00d1\7.\2\2\u00d1\'\3\2\2\2\27)\62\66=FJS\\bgu}\u0083\u0088\u008e\u0099"+
"\u00a7\u00ab\u00b8\u00c7\u00ce";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy