public static string evaluateText(BoqItemEvaluationContext paramBoqItemEvaluationContext, string paramString)
 {
     try
     {
         Expr expr = paramBoqItemEvaluationContext.parseStatement(paramString);
         if (expr is ExprString)
         {
             return(((ExprString)expr).ToString());
         }
     }
     catch (ExprException exprException)
     {
         Console.WriteLine(exprException.ToString());
         Console.Write(exprException.StackTrace);
         return("");
     }
     return("");
 }
 public static decimal evaluateDecimal(BoqItemEvaluationContext paramBoqItemEvaluationContext, string paramString)
 {
     try
     {
         Expr expr = paramBoqItemEvaluationContext.parseStatement(paramString);
         if (expr is ExprDouble)
         {
             return(new BigDecimalFixed("" + ((ExprDouble)expr).doubleValue()));
         }
     }
     catch (ExprException exprException)
     {
         Console.WriteLine("Error when evaluating formula: " + paramString);
         Console.WriteLine(exprException.ToString());
         Console.Write(exprException.StackTrace);
         return(BigDecimalMath.ZERO);
     }
     return(BigDecimalMath.ZERO);
 }
 public static bool?evaluateBoolean(BoqItemEvaluationContext paramBoqItemEvaluationContext, string paramString)
 {
     try
     {
         Expr expr = paramBoqItemEvaluationContext.parseStatement(paramString);
         if (expr is ExprBoolean)
         {
             return(Convert.ToBoolean(((ExprBoolean)expr).booleanValue()));
         }
     }
     catch (ExprException exprException)
     {
         Console.WriteLine("Error when evaluating formula: " + paramString);
         Console.WriteLine(exprException.ToString());
         Console.Write(exprException.StackTrace);
         return(false);
     }
     return(false);
 }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static org.boris.expr.Expr evaluate(BoqItemEvaluationContext paramBoqItemEvaluationContext, String paramString) throws org.boris.expr.ExprException
        public static Expr evaluate(BoqItemEvaluationContext paramBoqItemEvaluationContext, string paramString)
        {
            return(paramBoqItemEvaluationContext.parseStatement(paramString));
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static org.boris.expr.Expr evaluate(nomitech.common.db.project.BoqItemTable paramBoqItemTable, String paramString1, String paramString2) throws org.boris.expr.ExprException
        public static Expr evaluate(BoqItemTable paramBoqItemTable, string paramString1, string paramString2)
        {
            BoqItemEvaluationContext boqItemEvaluationContext = new BoqItemEvaluationContext(paramBoqItemTable, paramString1);

            return(boqItemEvaluationContext.parseStatement(paramString2));
        }