poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1751840 - /poi/trunk/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
Date Thu, 07 Jul 2016 22:46:07 GMT
Author: onealj
Date: Thu Jul  7 22:46:06 2016
New Revision: 1751840

URL: http://svn.apache.org/viewvc?rev=1751840&view=rev
Log:
add getters for setIgnoreMissingWorkbooks and setDebugEvaluationOutputForNextEval; add internal
decorator; getSupportedFunctionNames and getNotSupportedFunctionNames should return unmodifiable
collections

Modified:
    poi/trunk/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java?rev=1751840&r1=1751839&r2=1751840&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java Thu Jul  7 22:46:06
2016
@@ -19,6 +19,7 @@ package org.apache.poi.ss.formula;
 
 import java.util.Arrays;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.IdentityHashMap;
 import java.util.Map;
 import java.util.Stack;
@@ -78,6 +79,7 @@ import org.apache.poi.ss.formula.udf.Agg
 import org.apache.poi.ss.formula.udf.UDFFinder;
 import org.apache.poi.ss.usermodel.CellType;
 import org.apache.poi.ss.util.CellReference;
+import org.apache.poi.util.Internal;
 import org.apache.poi.util.POILogFactory;
 import org.apache.poi.util.POILogger;
 /**
@@ -92,6 +94,7 @@ import org.apache.poi.util.POILogger;
  * @author Josh Micich
  * @author Thies Wellpott (debug output enhancements)
  */
+@Internal
 public final class WorkbookEvaluator {
     
     private static final POILogger LOG = POILogFactory.getLogger(WorkbookEvaluator.class);
@@ -768,6 +771,9 @@ public final class WorkbookEvaluator {
     public void setIgnoreMissingWorkbooks(boolean ignore){
         _ignoreMissingWorkbooks = ignore;
     }
+    public boolean isIgnoreMissingWorkbooks(){
+        return _ignoreMissingWorkbooks;
+    }
 
     /**
      * Return a collection of functions that POI can evaluate
@@ -778,7 +784,7 @@ public final class WorkbookEvaluator {
         Collection<String> lst = new TreeSet<String>();
         lst.addAll(FunctionEval.getSupportedFunctionNames());
         lst.addAll(AnalysisToolPak.getSupportedFunctionNames());
-        return lst;
+        return Collections.unmodifiableCollection(lst);
     }
 
     /**
@@ -790,7 +796,7 @@ public final class WorkbookEvaluator {
         Collection<String> lst = new TreeSet<String>();
         lst.addAll(FunctionEval.getNotSupportedFunctionNames());
         lst.addAll(AnalysisToolPak.getNotSupportedFunctionNames());
-        return lst;
+        return Collections.unmodifiableCollection(lst);
     }
 
     /**
@@ -820,4 +826,7 @@ public final class WorkbookEvaluator {
     public void setDebugEvaluationOutputForNextEval(boolean value){
         dbgEvaluationOutputForNextEval = value;
     }
+    public boolean isDebugEvaluationOutputForNextEval(){
+        return dbgEvaluationOutputForNextEval;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message