C# Class ExcelFormulaParser.Engine.Excel.Functions.ExcelFunction

Afficher le fichier Open project: swmal/ExcelFormulaParser Class Usage Examples

Méthodes publiques

Méthode Description
BeforeInvoke ( ParsingContext context ) : void
ExcelFunction ( ) : System
ExcelFunction ( ArgumentCollectionUtil argumentCollectionUtil, ArgumentParsers argumentParsers ) : System
Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult

Méthodes protégées

Méthode Description
ArgToBool ( IEnumerable arguments, int index ) : bool

If the argument is a boolean value its value will be returned. If the argument is an integer value, true will be returned if its value is not 0, otherwise false.

ArgToDecimal ( IEnumerable arguments, int index ) : double
ArgToDecimal ( object obj ) : double
ArgToInt ( IEnumerable arguments, int index ) : int
ArgToString ( IEnumerable arguments, int index ) : string
ArgsToDoubleEnumerable ( IEnumerable arguments ) : IEnumerable
CalculateCollection ( IEnumerable collection, double result, Func action ) : double
CreateResult ( object result, DataType dataType ) : CompileResult
IsNumeric ( object val ) : bool
ThrowArgumentExceptionIf ( Func condition, string message ) : void
ThrowExcelFunctionException ( ExcelErrorCodes code ) : void
ThrowExcelFunctionExceptionIf ( Func condition, ExcelErrorCodes code ) : void
ValidateArguments ( IEnumerable arguments, int minLength ) : void

Method Details

ArgToBool() protected méthode

If the argument is a boolean value its value will be returned. If the argument is an integer value, true will be returned if its value is not 0, otherwise false.
protected ArgToBool ( IEnumerable arguments, int index ) : bool
arguments IEnumerable
index int
Résultat bool

ArgToDecimal() protected méthode

protected ArgToDecimal ( IEnumerable arguments, int index ) : double
arguments IEnumerable
index int
Résultat double

ArgToDecimal() protected méthode

protected ArgToDecimal ( object obj ) : double
obj object
Résultat double

ArgToInt() protected méthode

protected ArgToInt ( IEnumerable arguments, int index ) : int
arguments IEnumerable
index int
Résultat int

ArgToString() protected méthode

protected ArgToString ( IEnumerable arguments, int index ) : string
arguments IEnumerable
index int
Résultat string

ArgsToDoubleEnumerable() protected méthode

protected ArgsToDoubleEnumerable ( IEnumerable arguments ) : IEnumerable
arguments IEnumerable
Résultat IEnumerable

BeforeInvoke() public méthode

public BeforeInvoke ( ParsingContext context ) : void
context ParsingContext
Résultat void

CalculateCollection() protected méthode

protected CalculateCollection ( IEnumerable collection, double result, Func action ) : double
collection IEnumerable
result double
action Func
Résultat double

CreateResult() protected méthode

protected CreateResult ( object result, DataType dataType ) : CompileResult
result object
dataType DataType
Résultat ExcelFormulaParser.Engine.ExpressionGraph.CompileResult

ExcelFunction() public méthode

public ExcelFunction ( ) : System
Résultat System

ExcelFunction() public méthode

public ExcelFunction ( ArgumentCollectionUtil argumentCollectionUtil, ArgumentParsers argumentParsers ) : System
argumentCollectionUtil ArgumentCollectionUtil
argumentParsers ArgumentParsers
Résultat System

Execute() public abstract méthode

public abstract Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult
arguments IEnumerable
context ParsingContext
Résultat ExcelFormulaParser.Engine.ExpressionGraph.CompileResult

IsNumeric() protected méthode

protected IsNumeric ( object val ) : bool
val object
Résultat bool

ThrowArgumentExceptionIf() protected méthode

protected ThrowArgumentExceptionIf ( Func condition, string message ) : void
condition Func
message string
Résultat void

ThrowExcelFunctionException() protected méthode

protected ThrowExcelFunctionException ( ExcelErrorCodes code ) : void
code ExcelFormulaParser.Engine.Exceptions.ExcelErrorCodes
Résultat void

ThrowExcelFunctionExceptionIf() protected méthode

protected ThrowExcelFunctionExceptionIf ( Func condition, ExcelErrorCodes code ) : void
condition Func
code ExcelFormulaParser.Engine.Exceptions.ExcelErrorCodes
Résultat void

ValidateArguments() protected méthode

protected ValidateArguments ( IEnumerable arguments, int minLength ) : void
arguments IEnumerable
minLength int
Résultat void