else if ((LA(1)==STAR)) { org.exist.xquery.parser.XQueryAST tmp261_AST = null; tmp261_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp261_AST); match(STAR); if ( inputState.guessing==0 ) { wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;
wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((LA(1)==STAR)) { org.exist.xquery.parser.XQueryAST tmp259_AST = null; tmp259_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp259_AST); match(STAR); if ( inputState.guessing==0 ) { wildcard_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;   wildcard_AST= (org.exist.xquery.parser.XQueryAST)astFactory.create(WILDCARD,"*");
	public final void wildcard() throws RecognitionException, TokenStreamException {				traceIn("wildcard");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST wildcard_AST = null;			Token  nc1 = null;			org.exist.xquery.parser.XQueryAST nc1_AST = null;			Token  nc2 = null;			org.exist.xquery.parser.XQueryAST nc2_AST = null;						boolean synPredMatched185 = false;			if (((LA(1)==STAR))) {				int _m185 = mark();				synPredMatched185 = true;				inputState.guessing++;				try {					{					match(STAR);					match(COLON);					}				}				catch (RecognitionException pe) {					synPredMatched185 = false;				}				rewind(_m185);				inputState.guessing--;			}			if ( synPredMatched185 ) {				match(STAR);				match(COLON);				nc1 = LT(1);				nc1_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(nc1);				astFactory.addASTChild(currentAST, nc1_AST);				match(NCNAME);				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(nc1_AST));					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)==NCNAME)) {				nc2 = LT(1);				nc2_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(nc2);				astFactory.addASTChild(currentAST, nc2_AST);				match(NCNAME);				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(nc2_AST).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 tmp261_AST = null;				tmp261_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp261_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;		} finally { // debugging			traceOut("wildcard");		}	}