C# 클래스 ExcelFormulaParser.Engine.Excel.Functions.ExcelFunction

파일 보기 프로젝트 열기: swmal/ExcelFormulaParser 1 사용 예제들

공개 메소드들

메소드 설명
BeforeInvoke ( ParsingContext context ) : void
ExcelFunction ( ) : System
ExcelFunction ( ArgumentCollectionUtil argumentCollectionUtil, ArgumentParsers argumentParsers ) : System
Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult

보호된 메소드들

메소드 설명
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

메소드 상세

ArgToBool() 보호된 메소드

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
리턴 bool

ArgToDecimal() 보호된 메소드

protected ArgToDecimal ( IEnumerable arguments, int index ) : double
arguments IEnumerable
index int
리턴 double

ArgToDecimal() 보호된 메소드

protected ArgToDecimal ( object obj ) : double
obj object
리턴 double

ArgToInt() 보호된 메소드

protected ArgToInt ( IEnumerable arguments, int index ) : int
arguments IEnumerable
index int
리턴 int

ArgToString() 보호된 메소드

protected ArgToString ( IEnumerable arguments, int index ) : string
arguments IEnumerable
index int
리턴 string

ArgsToDoubleEnumerable() 보호된 메소드

protected ArgsToDoubleEnumerable ( IEnumerable arguments ) : IEnumerable
arguments IEnumerable
리턴 IEnumerable

BeforeInvoke() 공개 메소드

public BeforeInvoke ( ParsingContext context ) : void
context ParsingContext
리턴 void

CalculateCollection() 보호된 메소드

protected CalculateCollection ( IEnumerable collection, double result, Func action ) : double
collection IEnumerable
result double
action Func
리턴 double

CreateResult() 보호된 메소드

protected CreateResult ( object result, DataType dataType ) : CompileResult
result object
dataType DataType
리턴 ExcelFormulaParser.Engine.ExpressionGraph.CompileResult

ExcelFunction() 공개 메소드

public ExcelFunction ( ) : System
리턴 System

ExcelFunction() 공개 메소드

public ExcelFunction ( ArgumentCollectionUtil argumentCollectionUtil, ArgumentParsers argumentParsers ) : System
argumentCollectionUtil ArgumentCollectionUtil
argumentParsers ArgumentParsers
리턴 System

Execute() 공개 추상적인 메소드

public abstract Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult
arguments IEnumerable
context ParsingContext
리턴 ExcelFormulaParser.Engine.ExpressionGraph.CompileResult

IsNumeric() 보호된 메소드

protected IsNumeric ( object val ) : bool
val object
리턴 bool

ThrowArgumentExceptionIf() 보호된 메소드

protected ThrowArgumentExceptionIf ( Func condition, string message ) : void
condition Func
message string
리턴 void

ThrowExcelFunctionException() 보호된 메소드

protected ThrowExcelFunctionException ( ExcelErrorCodes code ) : void
code ExcelFormulaParser.Engine.Exceptions.ExcelErrorCodes
리턴 void

ThrowExcelFunctionExceptionIf() 보호된 메소드

protected ThrowExcelFunctionExceptionIf ( Func condition, ExcelErrorCodes code ) : void
condition Func
code ExcelFormulaParser.Engine.Exceptions.ExcelErrorCodes
리턴 void

ValidateArguments() 보호된 메소드

protected ValidateArguments ( IEnumerable arguments, int minLength ) : void
arguments IEnumerable
minLength int
리턴 void