Fix whitespace - reformat to consistent spaces, instead of a mix of tabs and spaces
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553625 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3ef65e166d
commit
e961fe6e94
@ -17,15 +17,75 @@
|
|||||||
|
|
||||||
package org.apache.poi.ss.formula.eval;
|
package org.apache.poi.ss.formula.eval;
|
||||||
|
|
||||||
import org.apache.poi.ss.formula.atp.AnalysisToolPak;
|
|
||||||
import org.apache.poi.ss.formula.function.FunctionMetadata;
|
|
||||||
import org.apache.poi.ss.formula.function.FunctionMetadataRegistry;
|
|
||||||
import org.apache.poi.ss.formula.functions.*;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
|
|
||||||
|
import org.apache.poi.ss.formula.atp.AnalysisToolPak;
|
||||||
|
import org.apache.poi.ss.formula.function.FunctionMetadata;
|
||||||
|
import org.apache.poi.ss.formula.function.FunctionMetadataRegistry;
|
||||||
|
import org.apache.poi.ss.formula.functions.Address;
|
||||||
|
import org.apache.poi.ss.formula.functions.AggregateFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.BooleanFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.CalendarFieldFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.Choose;
|
||||||
|
import org.apache.poi.ss.formula.functions.Code;
|
||||||
|
import org.apache.poi.ss.formula.functions.Column;
|
||||||
|
import org.apache.poi.ss.formula.functions.Columns;
|
||||||
|
import org.apache.poi.ss.formula.functions.Count;
|
||||||
|
import org.apache.poi.ss.formula.functions.Counta;
|
||||||
|
import org.apache.poi.ss.formula.functions.Countblank;
|
||||||
|
import org.apache.poi.ss.formula.functions.Countif;
|
||||||
|
import org.apache.poi.ss.formula.functions.DateFunc;
|
||||||
|
import org.apache.poi.ss.formula.functions.Days360;
|
||||||
|
import org.apache.poi.ss.formula.functions.Errortype;
|
||||||
|
import org.apache.poi.ss.formula.functions.Even;
|
||||||
|
import org.apache.poi.ss.formula.functions.FinanceFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.Function;
|
||||||
|
import org.apache.poi.ss.formula.functions.Hlookup;
|
||||||
|
import org.apache.poi.ss.formula.functions.Hyperlink;
|
||||||
|
import org.apache.poi.ss.formula.functions.IPMT;
|
||||||
|
import org.apache.poi.ss.formula.functions.IfFunc;
|
||||||
|
import org.apache.poi.ss.formula.functions.Index;
|
||||||
|
import org.apache.poi.ss.formula.functions.Intercept;
|
||||||
|
import org.apache.poi.ss.formula.functions.Irr;
|
||||||
|
import org.apache.poi.ss.formula.functions.LogicalFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.Lookup;
|
||||||
|
import org.apache.poi.ss.formula.functions.Match;
|
||||||
|
import org.apache.poi.ss.formula.functions.MinaMaxa;
|
||||||
|
import org.apache.poi.ss.formula.functions.Mirr;
|
||||||
|
import org.apache.poi.ss.formula.functions.Mode;
|
||||||
|
import org.apache.poi.ss.formula.functions.Na;
|
||||||
|
import org.apache.poi.ss.formula.functions.NotImplementedFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.Now;
|
||||||
|
import org.apache.poi.ss.formula.functions.Npv;
|
||||||
|
import org.apache.poi.ss.formula.functions.NumericFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.Odd;
|
||||||
|
import org.apache.poi.ss.formula.functions.Offset;
|
||||||
|
import org.apache.poi.ss.formula.functions.PPMT;
|
||||||
|
import org.apache.poi.ss.formula.functions.Rank;
|
||||||
|
import org.apache.poi.ss.formula.functions.Rate;
|
||||||
|
import org.apache.poi.ss.formula.functions.Replace;
|
||||||
|
import org.apache.poi.ss.formula.functions.Rept;
|
||||||
|
import org.apache.poi.ss.formula.functions.Roman;
|
||||||
|
import org.apache.poi.ss.formula.functions.RowFunc;
|
||||||
|
import org.apache.poi.ss.formula.functions.Rows;
|
||||||
|
import org.apache.poi.ss.formula.functions.Slope;
|
||||||
|
import org.apache.poi.ss.formula.functions.Substitute;
|
||||||
|
import org.apache.poi.ss.formula.functions.Subtotal;
|
||||||
|
import org.apache.poi.ss.formula.functions.Sumif;
|
||||||
|
import org.apache.poi.ss.formula.functions.Sumproduct;
|
||||||
|
import org.apache.poi.ss.formula.functions.Sumx2my2;
|
||||||
|
import org.apache.poi.ss.formula.functions.Sumx2py2;
|
||||||
|
import org.apache.poi.ss.formula.functions.Sumxmy2;
|
||||||
|
import org.apache.poi.ss.formula.functions.T;
|
||||||
|
import org.apache.poi.ss.formula.functions.TextFunction;
|
||||||
|
import org.apache.poi.ss.formula.functions.TimeFunc;
|
||||||
|
import org.apache.poi.ss.formula.functions.Today;
|
||||||
|
import org.apache.poi.ss.formula.functions.Value;
|
||||||
|
import org.apache.poi.ss.formula.functions.Vlookup;
|
||||||
|
import org.apache.poi.ss.formula.functions.WeekdayFunc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Amol S. Deshmukh < amolweb at ya hoo dot com >
|
* @author Amol S. Deshmukh < amolweb at ya hoo dot com >
|
||||||
* @author Johan Karlsteen - added Intercept and Slope
|
* @author Johan Karlsteen - added Intercept and Slope
|
||||||
@ -310,12 +370,12 @@ public final class FunctionEval {
|
|||||||
* @return an array of supported functions
|
* @return an array of supported functions
|
||||||
* @since 3.8 beta6
|
* @since 3.8 beta6
|
||||||
*/
|
*/
|
||||||
public static Collection<String> getSupportedFunctionNames(){
|
public static Collection<String> getSupportedFunctionNames() {
|
||||||
Collection<String> lst = new TreeSet<String>();
|
Collection<String> lst = new TreeSet<String>();
|
||||||
for(int i = 0; i < functions.length; i++){
|
for (int i = 0; i < functions.length; i++) {
|
||||||
Function func = functions[i];
|
Function func = functions[i];
|
||||||
FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);
|
FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);
|
||||||
if(func != null && !(func instanceof NotImplementedFunction)){
|
if (func != null && !(func instanceof NotImplementedFunction)) {
|
||||||
lst.add(metaData.getName());
|
lst.add(metaData.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -329,11 +389,11 @@ public final class FunctionEval {
|
|||||||
* @return an array of not supported functions
|
* @return an array of not supported functions
|
||||||
* @since 3.8 beta6
|
* @since 3.8 beta6
|
||||||
*/
|
*/
|
||||||
public static Collection<String> getNotSupportedFunctionNames(){
|
public static Collection<String> getNotSupportedFunctionNames() {
|
||||||
Collection<String> lst = new TreeSet<String>();
|
Collection<String> lst = new TreeSet<String>();
|
||||||
for(int i = 0; i < functions.length; i++){
|
for (int i = 0; i < functions.length; i++) {
|
||||||
Function func = functions[i];
|
Function func = functions[i];
|
||||||
if(func != null && (func instanceof NotImplementedFunction)){
|
if (func != null && (func instanceof NotImplementedFunction)) {
|
||||||
FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);
|
FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);
|
||||||
lst.add(metaData.getName());
|
lst.add(metaData.getName());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user