net.anwiba.tools.definition.schema.json.gramma.JSSDParser Maven / Gradle / Ivy
// Generated from java-escape by ANTLR 4.11.1
package net.anwiba.tools.definition.schema.json.gramma;
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", "CheckReturnValue"})
public class JSSDParser extends Parser {
static { RuntimeMetaData.checkVersion("4.11.1", 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,
STRING=18, NAME=19, NUMBER=20, INTEGER=21, BLOCK_COMMENT=22, LINE_COMMENT=23,
WS=24;
public static final int
RULE_jssd = 0, RULE_objectArray = 1, RULE_object = 2, RULE_member = 3,
RULE_type = 4, RULE_comment = 5, RULE_memberName = 6, RULE_generics = 7,
RULE_className = 8, RULE_dimension = 9, RULE_annotation = 10, RULE_annotationName = 11,
RULE_parameter = 12, RULE_parameterValue = 13, RULE_path = 14, RULE_array = 15,
RULE_value = 16, RULE_name = 17;
private static String[] makeRuleNames() {
return new String[] {
"jssd", "objectArray", "object", "member", "type", "comment", "memberName",
"generics", "className", "dimension", "annotation", "annotationName",
"parameter", "parameterValue", "path", "array", "value", "name"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'['", "','", "']'", "'{'", "'}'", "':'", "'<'", "'>'", "'[]'",
"'@'", "'('", "')'", "'='", "'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, "STRING", "NAME", "NUMBER", "INTEGER",
"BLOCK_COMMENT", "LINE_COMMENT", "WS"
};
}
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 "java-escape"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public JSSDParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@SuppressWarnings("CheckReturnValue")
public static class JssdContext extends ParserRuleContext {
public ObjectContext object() {
return getRuleContext(ObjectContext.class,0);
}
public ObjectArrayContext objectArray() {
return getRuleContext(ObjectArrayContext.class,0);
}
public JssdContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_jssd; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterJssd(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitJssd(this);
}
}
public final JssdContext jssd() throws RecognitionException {
JssdContext _localctx = new JssdContext(_ctx, getState());
enterRule(_localctx, 0, RULE_jssd);
try {
setState(38);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__3:
case T__9:
case BLOCK_COMMENT:
enterOuterAlt(_localctx, 1);
{
setState(36);
object();
}
break;
case T__0:
enterOuterAlt(_localctx, 2);
{
setState(37);
objectArray();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ObjectArrayContext extends ParserRuleContext {
public List object() {
return getRuleContexts(ObjectContext.class);
}
public ObjectContext object(int i) {
return getRuleContext(ObjectContext.class,i);
}
public ObjectArrayContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_objectArray; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterObjectArray(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitObjectArray(this);
}
}
public final ObjectArrayContext objectArray() throws RecognitionException {
ObjectArrayContext _localctx = new ObjectArrayContext(_ctx, getState());
enterRule(_localctx, 2, RULE_objectArray);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(40);
match(T__0);
setState(41);
object();
setState(46);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__1) {
{
{
setState(42);
match(T__1);
setState(43);
object();
}
}
setState(48);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(49);
match(T__2);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ObjectContext extends ParserRuleContext {
public CommentContext comment() {
return getRuleContext(CommentContext.class,0);
}
public List annotation() {
return getRuleContexts(AnnotationContext.class);
}
public AnnotationContext annotation(int i) {
return getRuleContext(AnnotationContext.class,i);
}
public List member() {
return getRuleContexts(MemberContext.class);
}
public MemberContext member(int i) {
return getRuleContext(MemberContext.class,i);
}
public ObjectContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_object; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterObject(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitObject(this);
}
}
public final ObjectContext object() throws RecognitionException {
ObjectContext _localctx = new ObjectContext(_ctx, getState());
enterRule(_localctx, 4, RULE_object);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(52);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==BLOCK_COMMENT) {
{
setState(51);
comment();
}
}
setState(57);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__9) {
{
{
setState(54);
annotation();
}
}
setState(59);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(60);
match(T__3);
setState(67);
_errHandler.sync(this);
_la = _input.LA(1);
while (((_la) & ~0x3f) == 0 && ((1L << _la) & 4457472L) != 0) {
{
{
setState(61);
member();
setState(63);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__1) {
{
setState(62);
match(T__1);
}
}
}
}
setState(69);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(70);
match(T__4);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class MemberContext extends ParserRuleContext {
public MemberNameContext memberName() {
return getRuleContext(MemberNameContext.class,0);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public CommentContext comment() {
return getRuleContext(CommentContext.class,0);
}
public List annotation() {
return getRuleContexts(AnnotationContext.class);
}
public AnnotationContext annotation(int i) {
return getRuleContext(AnnotationContext.class,i);
}
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public MemberContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_member; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterMember(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitMember(this);
}
}
public final MemberContext member() throws RecognitionException {
MemberContext _localctx = new MemberContext(_ctx, getState());
enterRule(_localctx, 6, RULE_member);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(73);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==BLOCK_COMMENT) {
{
setState(72);
comment();
}
}
setState(78);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__9) {
{
{
setState(75);
annotation();
}
}
setState(80);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(81);
memberName();
setState(82);
match(T__5);
setState(83);
type();
setState(85);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,8,_ctx) ) {
case 1:
{
setState(84);
value();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class TypeContext extends ParserRuleContext {
public ClassNameContext className() {
return getRuleContext(ClassNameContext.class,0);
}
public GenericsContext generics() {
return getRuleContext(GenericsContext.class,0);
}
public List dimension() {
return getRuleContexts(DimensionContext.class);
}
public DimensionContext dimension(int i) {
return getRuleContext(DimensionContext.class,i);
}
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 JSSDListener ) ((JSSDListener)listener).enterType(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitType(this);
}
}
public final TypeContext type() throws RecognitionException {
TypeContext _localctx = new TypeContext(_ctx, getState());
enterRule(_localctx, 8, RULE_type);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(87);
match(T__6);
setState(88);
className();
setState(90);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__6) {
{
setState(89);
generics();
}
}
setState(95);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__8) {
{
{
setState(92);
dimension();
}
}
setState(97);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(98);
match(T__7);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class CommentContext extends ParserRuleContext {
public TerminalNode BLOCK_COMMENT() { return getToken(JSSDParser.BLOCK_COMMENT, 0); }
public CommentContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_comment; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterComment(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitComment(this);
}
}
public final CommentContext comment() throws RecognitionException {
CommentContext _localctx = new CommentContext(_ctx, getState());
enterRule(_localctx, 10, RULE_comment);
try {
enterOuterAlt(_localctx, 1);
{
setState(100);
match(BLOCK_COMMENT);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class MemberNameContext extends ParserRuleContext {
public TerminalNode STRING() { return getToken(JSSDParser.STRING, 0); }
public MemberNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_memberName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterMemberName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitMemberName(this);
}
}
public final MemberNameContext memberName() throws RecognitionException {
MemberNameContext _localctx = new MemberNameContext(_ctx, getState());
enterRule(_localctx, 12, RULE_memberName);
try {
enterOuterAlt(_localctx, 1);
{
setState(102);
match(STRING);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class GenericsContext extends ParserRuleContext {
public List className() {
return getRuleContexts(ClassNameContext.class);
}
public ClassNameContext className(int i) {
return getRuleContext(ClassNameContext.class,i);
}
public GenericsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_generics; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterGenerics(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitGenerics(this);
}
}
public final GenericsContext generics() throws RecognitionException {
GenericsContext _localctx = new GenericsContext(_ctx, getState());
enterRule(_localctx, 14, RULE_generics);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(104);
match(T__6);
setState(105);
className();
setState(110);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__1) {
{
{
setState(106);
match(T__1);
setState(107);
className();
}
}
setState(112);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(113);
match(T__7);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ClassNameContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public PathContext path() {
return getRuleContext(PathContext.class,0);
}
public ClassNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_className; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterClassName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitClassName(this);
}
}
public final ClassNameContext className() throws RecognitionException {
ClassNameContext _localctx = new ClassNameContext(_ctx, getState());
enterRule(_localctx, 16, RULE_className);
try {
enterOuterAlt(_localctx, 1);
{
setState(116);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) {
case 1:
{
setState(115);
path();
}
break;
}
setState(118);
name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class DimensionContext extends ParserRuleContext {
public DimensionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_dimension; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterDimension(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitDimension(this);
}
}
public final DimensionContext dimension() throws RecognitionException {
DimensionContext _localctx = new DimensionContext(_ctx, getState());
enterRule(_localctx, 18, RULE_dimension);
try {
enterOuterAlt(_localctx, 1);
{
setState(120);
match(T__8);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class AnnotationContext extends ParserRuleContext {
public AnnotationNameContext annotationName() {
return getRuleContext(AnnotationNameContext.class,0);
}
public List parameter() {
return getRuleContexts(ParameterContext.class);
}
public ParameterContext parameter(int i) {
return getRuleContext(ParameterContext.class,i);
}
public AnnotationContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_annotation; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterAnnotation(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitAnnotation(this);
}
}
public final AnnotationContext annotation() throws RecognitionException {
AnnotationContext _localctx = new AnnotationContext(_ctx, getState());
enterRule(_localctx, 20, RULE_annotation);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(122);
match(T__9);
setState(123);
annotationName();
setState(136);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__10) {
{
setState(124);
match(T__10);
setState(133);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==NAME) {
{
setState(125);
parameter();
setState(130);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__1) {
{
{
setState(126);
match(T__1);
setState(127);
parameter();
}
}
setState(132);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
setState(135);
match(T__11);
}
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class AnnotationNameContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public PathContext path() {
return getRuleContext(PathContext.class,0);
}
public AnnotationNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_annotationName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterAnnotationName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitAnnotationName(this);
}
}
public final AnnotationNameContext annotationName() throws RecognitionException {
AnnotationNameContext _localctx = new AnnotationNameContext(_ctx, getState());
enterRule(_localctx, 22, RULE_annotationName);
try {
enterOuterAlt(_localctx, 1);
{
setState(139);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) {
case 1:
{
setState(138);
path();
}
break;
}
setState(141);
name();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ParameterContext extends ParserRuleContext {
public NameContext name() {
return getRuleContext(NameContext.class,0);
}
public ParameterValueContext parameterValue() {
return getRuleContext(ParameterValueContext.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 JSSDListener ) ((JSSDListener)listener).enterParameter(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitParameter(this);
}
}
public final ParameterContext parameter() throws RecognitionException {
ParameterContext _localctx = new ParameterContext(_ctx, getState());
enterRule(_localctx, 24, RULE_parameter);
try {
enterOuterAlt(_localctx, 1);
{
setState(143);
name();
setState(144);
match(T__12);
setState(145);
parameterValue();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ParameterValueContext extends ParserRuleContext {
public TerminalNode STRING() { return getToken(JSSDParser.STRING, 0); }
public TerminalNode INTEGER() { return getToken(JSSDParser.INTEGER, 0); }
public TerminalNode NUMBER() { return getToken(JSSDParser.NUMBER, 0); }
public ParameterValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_parameterValue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterParameterValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitParameterValue(this);
}
}
public final ParameterValueContext parameterValue() throws RecognitionException {
ParameterValueContext _localctx = new ParameterValueContext(_ctx, getState());
enterRule(_localctx, 26, RULE_parameterValue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(147);
_la = _input.LA(1);
if ( !(((_la) & ~0x3f) == 0 && ((1L << _la) & 3522560L) != 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;
}
@SuppressWarnings("CheckReturnValue")
public static class PathContext extends ParserRuleContext {
public List NAME() { return getTokens(JSSDParser.NAME); }
public TerminalNode NAME(int i) {
return getToken(JSSDParser.NAME, i);
}
public PathContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_path; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterPath(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitPath(this);
}
}
public final PathContext path() throws RecognitionException {
PathContext _localctx = new PathContext(_ctx, getState());
enterRule(_localctx, 28, RULE_path);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(151);
_errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
setState(149);
match(NAME);
setState(150);
match(T__16);
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(153);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,17,_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;
}
@SuppressWarnings("CheckReturnValue")
public static class ArrayContext extends ParserRuleContext {
public List value() {
return getRuleContexts(ValueContext.class);
}
public ValueContext value(int i) {
return getRuleContext(ValueContext.class,i);
}
public ArrayContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_array; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).enterArray(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitArray(this);
}
}
public final ArrayContext array() throws RecognitionException {
ArrayContext _localctx = new ArrayContext(_ctx, getState());
enterRule(_localctx, 30, RULE_array);
int _la;
try {
setState(168);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,19,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(155);
match(T__0);
setState(156);
value();
setState(161);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__1) {
{
{
setState(157);
match(T__1);
setState(158);
value();
}
}
setState(163);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(164);
match(T__2);
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(166);
match(T__0);
setState(167);
match(T__2);
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ValueContext extends ParserRuleContext {
public TerminalNode STRING() { return getToken(JSSDParser.STRING, 0); }
public TerminalNode INTEGER() { return getToken(JSSDParser.INTEGER, 0); }
public TerminalNode NUMBER() { return getToken(JSSDParser.NUMBER, 0); }
public ArrayContext array() {
return getRuleContext(ArrayContext.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 JSSDListener ) ((JSSDListener)listener).enterValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitValue(this);
}
}
public final ValueContext value() throws RecognitionException {
ValueContext _localctx = new ValueContext(_ctx, getState());
enterRule(_localctx, 32, RULE_value);
try {
setState(177);
_errHandler.sync(this);
switch (_input.LA(1)) {
case STRING:
enterOuterAlt(_localctx, 1);
{
setState(170);
match(STRING);
}
break;
case INTEGER:
enterOuterAlt(_localctx, 2);
{
setState(171);
match(INTEGER);
}
break;
case NUMBER:
enterOuterAlt(_localctx, 3);
{
setState(172);
match(NUMBER);
}
break;
case T__0:
enterOuterAlt(_localctx, 4);
{
setState(173);
array();
}
break;
case T__13:
enterOuterAlt(_localctx, 5);
{
setState(174);
match(T__13);
}
break;
case T__14:
enterOuterAlt(_localctx, 6);
{
setState(175);
match(T__14);
}
break;
case T__15:
enterOuterAlt(_localctx, 7);
{
setState(176);
match(T__15);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class NameContext extends ParserRuleContext {
public TerminalNode NAME() { return getToken(JSSDParser.NAME, 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 JSSDListener ) ((JSSDListener)listener).enterName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof JSSDListener ) ((JSSDListener)listener).exitName(this);
}
}
public final NameContext name() throws RecognitionException {
NameContext _localctx = new NameContext(_ctx, getState());
enterRule(_localctx, 34, RULE_name);
try {
enterOuterAlt(_localctx, 1);
{
setState(179);
match(NAME);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static final String _serializedATN =
"\u0004\u0001\u0018\u00b6\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001"+
"\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004"+
"\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007\u0007\u0007"+
"\u0002\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002\u000b\u0007\u000b"+
"\u0002\f\u0007\f\u0002\r\u0007\r\u0002\u000e\u0007\u000e\u0002\u000f\u0007"+
"\u000f\u0002\u0010\u0007\u0010\u0002\u0011\u0007\u0011\u0001\u0000\u0001"+
"\u0000\u0003\u0000\'\b\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
"\u0001\u0005\u0001-\b\u0001\n\u0001\f\u00010\t\u0001\u0001\u0001\u0001"+
"\u0001\u0001\u0002\u0003\u00025\b\u0002\u0001\u0002\u0005\u00028\b\u0002"+
"\n\u0002\f\u0002;\t\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0003\u0002"+
"@\b\u0002\u0005\u0002B\b\u0002\n\u0002\f\u0002E\t\u0002\u0001\u0002\u0001"+
"\u0002\u0001\u0003\u0003\u0003J\b\u0003\u0001\u0003\u0005\u0003M\b\u0003"+
"\n\u0003\f\u0003P\t\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
"\u0003\u0003V\b\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0003\u0004"+
"[\b\u0004\u0001\u0004\u0005\u0004^\b\u0004\n\u0004\f\u0004a\t\u0004\u0001"+
"\u0004\u0001\u0004\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001"+
"\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0005\u0007m\b\u0007\n\u0007"+
"\f\u0007p\t\u0007\u0001\u0007\u0001\u0007\u0001\b\u0003\bu\b\b\u0001\b"+
"\u0001\b\u0001\t\u0001\t\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001"+
"\n\u0005\n\u0081\b\n\n\n\f\n\u0084\t\n\u0003\n\u0086\b\n\u0001\n\u0003"+
"\n\u0089\b\n\u0001\u000b\u0003\u000b\u008c\b\u000b\u0001\u000b\u0001\u000b"+
"\u0001\f\u0001\f\u0001\f\u0001\f\u0001\r\u0001\r\u0001\u000e\u0001\u000e"+
"\u0004\u000e\u0098\b\u000e\u000b\u000e\f\u000e\u0099\u0001\u000f\u0001"+
"\u000f\u0001\u000f\u0001\u000f\u0005\u000f\u00a0\b\u000f\n\u000f\f\u000f"+
"\u00a3\t\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0003\u000f"+
"\u00a9\b\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010"+
"\u0001\u0010\u0001\u0010\u0003\u0010\u00b2\b\u0010\u0001\u0011\u0001\u0011"+
"\u0001\u0011\u0000\u0000\u0012\u0000\u0002\u0004\u0006\b\n\f\u000e\u0010"+
"\u0012\u0014\u0016\u0018\u001a\u001c\u001e \"\u0000\u0001\u0003\u0000"+
"\u000e\u0010\u0012\u0012\u0014\u0015\u00bd\u0000&\u0001\u0000\u0000\u0000"+
"\u0002(\u0001\u0000\u0000\u0000\u00044\u0001\u0000\u0000\u0000\u0006I"+
"\u0001\u0000\u0000\u0000\bW\u0001\u0000\u0000\u0000\nd\u0001\u0000\u0000"+
"\u0000\ff\u0001\u0000\u0000\u0000\u000eh\u0001\u0000\u0000\u0000\u0010"+
"t\u0001\u0000\u0000\u0000\u0012x\u0001\u0000\u0000\u0000\u0014z\u0001"+
"\u0000\u0000\u0000\u0016\u008b\u0001\u0000\u0000\u0000\u0018\u008f\u0001"+
"\u0000\u0000\u0000\u001a\u0093\u0001\u0000\u0000\u0000\u001c\u0097\u0001"+
"\u0000\u0000\u0000\u001e\u00a8\u0001\u0000\u0000\u0000 \u00b1\u0001\u0000"+
"\u0000\u0000\"\u00b3\u0001\u0000\u0000\u0000$\'\u0003\u0004\u0002\u0000"+
"%\'\u0003\u0002\u0001\u0000&$\u0001\u0000\u0000\u0000&%\u0001\u0000\u0000"+
"\u0000\'\u0001\u0001\u0000\u0000\u0000()\u0005\u0001\u0000\u0000).\u0003"+
"\u0004\u0002\u0000*+\u0005\u0002\u0000\u0000+-\u0003\u0004\u0002\u0000"+
",*\u0001\u0000\u0000\u0000-0\u0001\u0000\u0000\u0000.,\u0001\u0000\u0000"+
"\u0000./\u0001\u0000\u0000\u0000/1\u0001\u0000\u0000\u00000.\u0001\u0000"+
"\u0000\u000012\u0005\u0003\u0000\u00002\u0003\u0001\u0000\u0000\u0000"+
"35\u0003\n\u0005\u000043\u0001\u0000\u0000\u000045\u0001\u0000\u0000\u0000"+
"59\u0001\u0000\u0000\u000068\u0003\u0014\n\u000076\u0001\u0000\u0000\u0000"+
"8;\u0001\u0000\u0000\u000097\u0001\u0000\u0000\u00009:\u0001\u0000\u0000"+
"\u0000:<\u0001\u0000\u0000\u0000;9\u0001\u0000\u0000\u0000@\u0005\u0002\u0000\u0000?>\u0001"+
"\u0000\u0000\u0000?@\u0001\u0000\u0000\u0000@B\u0001\u0000\u0000\u0000"+
"A=\u0001\u0000\u0000\u0000BE\u0001\u0000\u0000\u0000CA\u0001\u0000\u0000"+
"\u0000CD\u0001\u0000\u0000\u0000DF\u0001\u0000\u0000\u0000EC\u0001\u0000"+
"\u0000\u0000FG\u0005\u0005\u0000\u0000G\u0005\u0001\u0000\u0000\u0000"+
"HJ\u0003\n\u0005\u0000IH\u0001\u0000\u0000\u0000IJ\u0001\u0000\u0000\u0000"+
"JN\u0001\u0000\u0000\u0000KM\u0003\u0014\n\u0000LK\u0001\u0000\u0000\u0000"+
"MP\u0001\u0000\u0000\u0000NL\u0001\u0000\u0000\u0000NO\u0001\u0000\u0000"+
"\u0000OQ\u0001\u0000\u0000\u0000PN\u0001\u0000\u0000\u0000QR\u0003\f\u0006"+
"\u0000RS\u0005\u0006\u0000\u0000SU\u0003\b\u0004\u0000TV\u0003 \u0010"+
"\u0000UT\u0001\u0000\u0000\u0000UV\u0001\u0000\u0000\u0000V\u0007\u0001"+
"\u0000\u0000\u0000WX\u0005\u0007\u0000\u0000XZ\u0003\u0010\b\u0000Y[\u0003"+
"\u000e\u0007\u0000ZY\u0001\u0000\u0000\u0000Z[\u0001\u0000\u0000\u0000"+
"[_\u0001\u0000\u0000\u0000\\^\u0003\u0012\t\u0000]\\\u0001\u0000\u0000"+
"\u0000^a\u0001\u0000\u0000\u0000_]\u0001\u0000\u0000\u0000_`\u0001\u0000"+
"\u0000\u0000`b\u0001\u0000\u0000\u0000a_\u0001\u0000\u0000\u0000bc\u0005"+
"\b\u0000\u0000c\t\u0001\u0000\u0000\u0000de\u0005\u0016\u0000\u0000e\u000b"+
"\u0001\u0000\u0000\u0000fg\u0005\u0012\u0000\u0000g\r\u0001\u0000\u0000"+
"\u0000hi\u0005\u0007\u0000\u0000in\u0003\u0010\b\u0000jk\u0005\u0002\u0000"+
"\u0000km\u0003\u0010\b\u0000lj\u0001\u0000\u0000\u0000mp\u0001\u0000\u0000"+
"\u0000nl\u0001\u0000\u0000\u0000no\u0001\u0000\u0000\u0000oq\u0001\u0000"+
"\u0000\u0000pn\u0001\u0000\u0000\u0000qr\u0005\b\u0000\u0000r\u000f\u0001"+
"\u0000\u0000\u0000su\u0003\u001c\u000e\u0000ts\u0001\u0000\u0000\u0000"+
"tu\u0001\u0000\u0000\u0000uv\u0001\u0000\u0000\u0000vw\u0003\"\u0011\u0000"+
"w\u0011\u0001\u0000\u0000\u0000xy\u0005\t\u0000\u0000y\u0013\u0001\u0000"+
"\u0000\u0000z{\u0005\n\u0000\u0000{\u0088\u0003\u0016\u000b\u0000|\u0085"+
"\u0005\u000b\u0000\u0000}\u0082\u0003\u0018\f\u0000~\u007f\u0005\u0002"+
"\u0000\u0000\u007f\u0081\u0003\u0018\f\u0000\u0080~\u0001\u0000\u0000"+
"\u0000\u0081\u0084\u0001\u0000\u0000\u0000\u0082\u0080\u0001\u0000\u0000"+
"\u0000\u0082\u0083\u0001\u0000\u0000\u0000\u0083\u0086\u0001\u0000\u0000"+
"\u0000\u0084\u0082\u0001\u0000\u0000\u0000\u0085}\u0001\u0000\u0000\u0000"+
"\u0085\u0086\u0001\u0000\u0000\u0000\u0086\u0087\u0001\u0000\u0000\u0000"+
"\u0087\u0089\u0005\f\u0000\u0000\u0088|\u0001\u0000\u0000\u0000\u0088"+
"\u0089\u0001\u0000\u0000\u0000\u0089\u0015\u0001\u0000\u0000\u0000\u008a"+
"\u008c\u0003\u001c\u000e\u0000\u008b\u008a\u0001\u0000\u0000\u0000\u008b"+
"\u008c\u0001\u0000\u0000\u0000\u008c\u008d\u0001\u0000\u0000\u0000\u008d"+
"\u008e\u0003\"\u0011\u0000\u008e\u0017\u0001\u0000\u0000\u0000\u008f\u0090"+
"\u0003\"\u0011\u0000\u0090\u0091\u0005\r\u0000\u0000\u0091\u0092\u0003"+
"\u001a\r\u0000\u0092\u0019\u0001\u0000\u0000\u0000\u0093\u0094\u0007\u0000"+
"\u0000\u0000\u0094\u001b\u0001\u0000\u0000\u0000\u0095\u0096\u0005\u0013"+
"\u0000\u0000\u0096\u0098\u0005\u0011\u0000\u0000\u0097\u0095\u0001\u0000"+
"\u0000\u0000\u0098\u0099\u0001\u0000\u0000\u0000\u0099\u0097\u0001\u0000"+
"\u0000\u0000\u0099\u009a\u0001\u0000\u0000\u0000\u009a\u001d\u0001\u0000"+
"\u0000\u0000\u009b\u009c\u0005\u0001\u0000\u0000\u009c\u00a1\u0003 \u0010"+
"\u0000\u009d\u009e\u0005\u0002\u0000\u0000\u009e\u00a0\u0003 \u0010\u0000"+
"\u009f\u009d\u0001\u0000\u0000\u0000\u00a0\u00a3\u0001\u0000\u0000\u0000"+
"\u00a1\u009f\u0001\u0000\u0000\u0000\u00a1\u00a2\u0001\u0000\u0000\u0000"+
"\u00a2\u00a4\u0001\u0000\u0000\u0000\u00a3\u00a1\u0001\u0000\u0000\u0000"+
"\u00a4\u00a5\u0005\u0003\u0000\u0000\u00a5\u00a9\u0001\u0000\u0000\u0000"+
"\u00a6\u00a7\u0005\u0001\u0000\u0000\u00a7\u00a9\u0005\u0003\u0000\u0000"+
"\u00a8\u009b\u0001\u0000\u0000\u0000\u00a8\u00a6\u0001\u0000\u0000\u0000"+
"\u00a9\u001f\u0001\u0000\u0000\u0000\u00aa\u00b2\u0005\u0012\u0000\u0000"+
"\u00ab\u00b2\u0005\u0015\u0000\u0000\u00ac\u00b2\u0005\u0014\u0000\u0000"+
"\u00ad\u00b2\u0003\u001e\u000f\u0000\u00ae\u00b2\u0005\u000e\u0000\u0000"+
"\u00af\u00b2\u0005\u000f\u0000\u0000\u00b0\u00b2\u0005\u0010\u0000\u0000"+
"\u00b1\u00aa\u0001\u0000\u0000\u0000\u00b1\u00ab\u0001\u0000\u0000\u0000"+
"\u00b1\u00ac\u0001\u0000\u0000\u0000\u00b1\u00ad\u0001\u0000\u0000\u0000"+
"\u00b1\u00ae\u0001\u0000\u0000\u0000\u00b1\u00af\u0001\u0000\u0000\u0000"+
"\u00b1\u00b0\u0001\u0000\u0000\u0000\u00b2!\u0001\u0000\u0000\u0000\u00b3"+
"\u00b4\u0005\u0013\u0000\u0000\u00b4#\u0001\u0000\u0000\u0000\u0015&."+
"49?CINUZ_nt\u0082\u0085\u0088\u008b\u0099\u00a1\u00a8\u00b1";
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 - 2025 Weber Informatics LLC | Privacy Policy