public static List<Object> validateAndEvaluate(String viewName,StatementContext statementContext,List<ExprNode> expressions) throws ViewParameterException {
  List<Object> results=new ArrayList<Object>();
  int expressionNumber=0;
  StreamTypeService streamTypeService=new StreamTypeServiceImpl(statementContext.getEngineURI(),false);
  for (  ExprNode expr : expressions) {
    Object result=validateAndEvaluateExpr(viewName,statementContext,expr,streamTypeService,expressionNumber);
    results.add(result);
    expressionNumber++;
  }
  return results;
}

public static List < Object > validateAndEvaluate ( String viewName , StatementContext statementContext , List < ExprNode > expressions ) throws ViewParameterException { List < Object > results = new ArrayList < Object > ( ) ; int expressionNumber = 0 ; StreamTypeService streamTypeService = new StreamTypeServiceImpl ( statementContext . getEngineURI ( ) , false ) ; for ( ExprNode expr : expressions ) { Object result = validateAndEvaluateExpr ( viewName , statementContext , expr , streamTypeService , expressionNumber ) ; results . add ( result ) ; expressionNumber ++ ; } return results ; }
validate the view parameter expressions and evaluate the expressions returning the result object .
