throw new NoViableAltException(LT(1), getFilename()); } }}} } setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = setter_AST; }
boolean synPredMatched46 = false; if (((LA(1)==LITERAL_declare))) { int _m46 = mark(); synPredMatched46 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_construction); } } catch (RecognitionException pe) { synPredMatched46 = false; } rewind(_m46); inputState.guessing--; } if ( synPredMatched46 ) { match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp81_AST = null; tmp81_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp81_AST); match(LITERAL_construction); { switch ( LA(1)) { case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp82_AST = null; tmp82_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp82_AST); match(LITERAL_preserve); break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp83_AST = null; tmp83_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp83_AST); match(LITERAL_strip); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } else { throw new NoViableAltException(LT(1), getFilename()); } }}}} } setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = setter_AST; }
	public final void setter() throws RecognitionException, TokenStreamException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST setter_AST = null;		Token  defc = null;		org.exist.xquery.parser.XQueryAST defc_AST = null;		Token  defu = null;		org.exist.xquery.parser.XQueryAST defu_AST = null;		Token  deff = null;		org.exist.xquery.parser.XQueryAST deff_AST = null;				{		boolean synPredMatched35 = false;		if (((LA(1)==LITERAL_declare))) {			int _m35 = mark();			synPredMatched35 = true;			inputState.guessing++;			try {				{				match(LITERAL_declare);				match(LITERAL_default);				}			}			catch (RecognitionException pe) {				synPredMatched35 = false;			}			rewind(_m35);			inputState.guessing--;		}		if ( synPredMatched35 ) {			match(LITERAL_declare);			match(LITERAL_default);			{			switch ( LA(1)) {			case LITERAL_collation:			{				match(LITERAL_collation);				defc = LT(1);				defc_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(defc);				astFactory.addASTChild(currentAST, defc_AST);				match(STRING_LITERAL);				if ( inputState.guessing==0 ) {					setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;					setter_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_COLLATION_DECL,"defaultCollationDecl")).add(defc_AST));					currentAST.root = setter_AST;					currentAST.child = setter_AST!=null &&setter_AST.getFirstChild()!=null ?						setter_AST.getFirstChild() : setter_AST;					currentAST.advanceChildToEnd();				}				break;			}			case LITERAL_element:			{				match(LITERAL_element);				match(LITERAL_namespace);				defu = LT(1);				defu_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(defu);				astFactory.addASTChild(currentAST, defu_AST);				match(STRING_LITERAL);				if ( inputState.guessing==0 ) {					setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;					setter_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_NAMESPACE_DECL,"defaultNamespaceDecl")).add(defu_AST));					currentAST.root = setter_AST;					currentAST.child = setter_AST!=null &&setter_AST.getFirstChild()!=null ?						setter_AST.getFirstChild() : setter_AST;					currentAST.advanceChildToEnd();				}				break;			}			case LITERAL_function:			{				match(LITERAL_function);				match(LITERAL_namespace);				deff = LT(1);				deff_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(deff);				astFactory.addASTChild(currentAST, deff_AST);				match(STRING_LITERAL);				if ( inputState.guessing==0 ) {					setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;					setter_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_FUNCTION_NS_DECL,"defaultFunctionNSDecl")).add(deff_AST));					currentAST.root = setter_AST;					currentAST.child = setter_AST!=null &&setter_AST.getFirstChild()!=null ?						setter_AST.getFirstChild() : setter_AST;					currentAST.advanceChildToEnd();				}				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}		}		else {			boolean synPredMatched38 = false;			if (((LA(1)==LITERAL_declare))) {				int _m38 = mark();				synPredMatched38 = true;				inputState.guessing++;				try {					{					match(LITERAL_declare);					match(LITERAL_xmlspace);					}				}				catch (RecognitionException pe) {					synPredMatched38 = false;				}				rewind(_m38);				inputState.guessing--;			}			if ( synPredMatched38 ) {				match(LITERAL_declare);				org.exist.xquery.parser.XQueryAST tmp70_AST = null;				tmp70_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp70_AST);				match(LITERAL_xmlspace);				{				switch ( LA(1)) {				case LITERAL_preserve:				{					org.exist.xquery.parser.XQueryAST tmp71_AST = null;					tmp71_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));					astFactory.addASTChild(currentAST, tmp71_AST);					match(LITERAL_preserve);					break;				}				case LITERAL_strip:				{					org.exist.xquery.parser.XQueryAST tmp72_AST = null;					tmp72_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));					astFactory.addASTChild(currentAST, tmp72_AST);					match(LITERAL_strip);					break;				}				default:				{					throw new NoViableAltException(LT(1), getFilename());				}				}				}			}			else {				boolean synPredMatched41 = false;				if (((LA(1)==LITERAL_declare))) {					int _m41 = mark();					synPredMatched41 = true;					inputState.guessing++;					try {						{						match(LITERAL_declare);						match(LITERAL_ordering);						}					}					catch (RecognitionException pe) {						synPredMatched41 = false;					}					rewind(_m41);					inputState.guessing--;				}				if ( synPredMatched41 ) {					match(LITERAL_declare);					org.exist.xquery.parser.XQueryAST tmp74_AST = null;					tmp74_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));					astFactory.makeASTRoot(currentAST, tmp74_AST);					match(LITERAL_ordering);					{					switch ( LA(1)) {					case LITERAL_ordered:					{						org.exist.xquery.parser.XQueryAST tmp75_AST = null;						tmp75_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.addASTChild(currentAST, tmp75_AST);						match(LITERAL_ordered);						break;					}					case LITERAL_unordered:					{						org.exist.xquery.parser.XQueryAST tmp76_AST = null;						tmp76_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.addASTChild(currentAST, tmp76_AST);						match(LITERAL_unordered);						break;					}					default:					{						throw new NoViableAltException(LT(1), getFilename());					}					}					}				}				else {					boolean synPredMatched44 = false;					if (((LA(1)==LITERAL_declare))) {						int _m44 = mark();						synPredMatched44 = true;						inputState.guessing++;						try {							{							match(LITERAL_declare);							match(LITERAL_construction);							}						}						catch (RecognitionException pe) {							synPredMatched44 = false;						}						rewind(_m44);						inputState.guessing--;					}					if ( synPredMatched44 ) {						match(LITERAL_declare);						org.exist.xquery.parser.XQueryAST tmp78_AST = null;						tmp78_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp78_AST);						match(LITERAL_construction);						{						switch ( LA(1)) {						case LITERAL_preserve:						{							org.exist.xquery.parser.XQueryAST tmp79_AST = null;							tmp79_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));							astFactory.addASTChild(currentAST, tmp79_AST);							match(LITERAL_preserve);							break;						}						case LITERAL_strip:						{							org.exist.xquery.parser.XQueryAST tmp80_AST = null;							tmp80_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));							astFactory.addASTChild(currentAST, tmp80_AST);							match(LITERAL_strip);							break;						}						default:						{							throw new NoViableAltException(LT(1), getFilename());						}						}						}					}					else {						throw new NoViableAltException(LT(1), getFilename());					}					}}}					}					setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;					returnAST = setter_AST;				}