returnAST = predicate_AST; } finally { traceOut("predicate");
predicate_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(PREDICATE,"Pred")).add(predExpr_AST)); currentAST.root = predicate_AST; currentAST.child = predicate_AST!=null &&predicate_AST.getFirstChild()!=null ? predicate_AST.getFirstChild() : predicate_AST; currentAST.advanceChildToEnd();
	public final void predicate() throws RecognitionException, TokenStreamException {				traceIn("predicate");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST predicate_AST = null;			org.exist.xquery.parser.XQueryAST predExpr_AST = null;						match(LPPAREN);			expr();			predExpr_AST = (org.exist.xquery.parser.XQueryAST)returnAST;			astFactory.addASTChild(currentAST, returnAST);			match(RPPAREN);			if ( inputState.guessing==0 ) {				predicate_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				predicate_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(PREDICATE,"Pred")).add(predExpr_AST));				currentAST.root = predicate_AST;				currentAST.child = predicate_AST!=null &&predicate_AST.getFirstChild()!=null ?					predicate_AST.getFirstChild() : predicate_AST;				currentAST.advanceChildToEnd();			}			predicate_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = predicate_AST;		} finally { // debugging			traceOut("predicate");		}	}