StiExpressionHelper Class

Namespace: Stimulsoft.Data.Helpers

Methods

Method Returns Description
Compile static LogicalExpression  
EscapeExpression static string  
FetchBlocksFromExpression static List  
GetArguments static List  
GetFirstArgumentFromExpression static string  
GetFunction static string  
IsAggregationFunctionPresent static bool  
IsExpression static bool  
IsFunctionPresent static bool  
IsPercentOfGrandTotal static bool  
IsThisExpression static bool  
IsTimeExpression static bool  
NewExpression static Expression  
ParseReportExpression static string  
PrepareExpression static string  
RemoveFunction static string  
RemoveRelations static string  
ReplaceExpressionBlocksByValues static string  
ReplaceFunction static string  
Visit (+6 overloads) void  

Method Details

Compile static

Compile(expression: string): LogicalExpression

Parameters

  • expression (string)

Returns LogicalExpression


EscapeExpression static

EscapeExpression(expression: string): string

Parameters

  • expression (string)

Returns string


FetchBlocksFromExpression static

FetchBlocksFromExpression(inputExpression: string): List

Parameters

  • inputExpression (string)

Returns List


GetArguments static

GetArguments(expression: string): List

Parameters

  • expression (string)

Returns List


GetFirstArgumentFromExpression static

GetFirstArgumentFromExpression(expression: string): string

Parameters

  • expression (string)

Returns string


GetFunction static

GetFunction(expression: string): string

Parameters

  • expression (string)

Returns string


IsAggregationFunctionPresent static

IsAggregationFunctionPresent(expression: string): bool

Parameters

  • expression (string)

Returns bool


IsExpression static

IsExpression(str: string): bool

Parameters

  • str (string)

Returns bool


IsFunctionPresent static

IsFunctionPresent(expression: string): bool

Parameters

  • expression (string)

Returns bool


IsPercentOfGrandTotal static

IsPercentOfGrandTotal(expression: string): bool

Parameters

  • expression (string)

Returns bool


IsThisExpression static

IsThisExpression(str: string): bool

Parameters

  • str (string)

Returns bool


IsTimeExpression static

IsTimeExpression(str: string): bool

Parameters

  • str (string)

Returns bool


NewExpression static

NewExpression(expression: string): Expression

Parameters

  • expression (string)

Returns Expression


ParseReportExpression static

ParseReportExpression(report: IStiReport, text: string, withBraces: bool, allowReturnNull: bool): string

Parameters

  • report (IStiReport)
  • text (string)
  • withBraces (bool)
  • allowReturnNull (bool)

Returns string


PrepareExpression static

PrepareExpression(expression: string): string

Parameters

  • expression (string)

Returns string


RemoveFunction static

RemoveFunction(expression: string): string

Parameters

  • expression (string)

Returns string


RemoveRelations static

RemoveRelations(expression: string, dataSources: IEnumerable<IStiAppDataSource>): string

Parameters

Returns string


ReplaceExpressionBlocksByValues static

ReplaceExpressionBlocksByValues(inputExpression: string, values: List): string

Parameters

  • inputExpression (string)
  • values (List)

Returns string


ReplaceFunction static

ReplaceFunction(expression: string, newFunction: string): string

Parameters

  • expression (string)
  • newFunction (string)

Returns string


Visit

Visit(function: Identifier): void

Parameters


Visit(expression: UnaryExpression): void

Parameters


Visit(expression: BinaryExpression): void

Parameters


Visit(expression: TernaryExpression): void

Parameters


Visit(function: Function): void

Parameters


Visit(expression: LogicalExpression): void

Parameters


Visit(expression: ValueExpression): void

Parameters

Fields

Field Type Description
Parameters HashSet