org.exist.xquery.parser.XQueryAST tmp242_AST = null; tmp242_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp242_AST);
org.exist.xquery.parser.XQueryAST tmp241_AST = null; tmp241_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp241_AST);
	public final void wildcard() throws RecognitionException, TokenStreamException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST wildcard_AST = null;		String name= null;				boolean synPredMatched241 = false;		if (((LA(1)==STAR))) {			int _m241 = mark();			synPredMatched241 = true;			inputState.guessing++;			try {				{				match(STAR);				match(COLON);				}			}			catch (RecognitionException pe) {				synPredMatched241 = false;			}			rewind(_m241);			inputState.guessing--;		}		if ( synPredMatched241 ) {			match(STAR);			match(COLON);			name=ncnameOrKeyword();			astFactory.addASTChild(currentAST, returnAST);			if ( inputState.guessing==0 ) {				wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				wildcard_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(PREFIX_WILDCARD,"*")).add((org.exist.xquery.parser.XQueryAST)astFactory.create(NCNAME,name)));				currentAST.root = wildcard_AST;				currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ?					wildcard_AST.getFirstChild() : wildcard_AST;				currentAST.advanceChildToEnd();			}			wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		}		else if ((_tokenSet_1.member(LA(1)))) {			name=ncnameOrKeyword();			astFactory.addASTChild(currentAST, returnAST);			match(COLON);			match(STAR);			if ( inputState.guessing==0 ) {				wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				wildcard_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(NCNAME,name)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(WILDCARD,"*")));				currentAST.root = wildcard_AST;				currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ?					wildcard_AST.getFirstChild() : wildcard_AST;				currentAST.advanceChildToEnd();			}			wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		}		else if ((LA(1)==STAR)) {			org.exist.xquery.parser.XQueryAST tmp242_AST = null;			tmp242_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.addASTChild(currentAST, tmp242_AST);			match(STAR);			if ( inputState.guessing==0 ) {				wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;										// make this distinct from multiplication						wildcard_AST= (org.exist.xquery.parser.XQueryAST)astFactory.create(WILDCARD,"*");									currentAST.root = wildcard_AST;				currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ?					wildcard_AST.getFirstChild() : wildcard_AST;				currentAST.advanceChildToEnd();			}			wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		}		else {			throw new NoViableAltException(LT(1), getFilename());		}				returnAST = wildcard_AST;	}