Class StiExpressionHelper
Methods
Static escapeExpression
- escapeExpression(expression: string): string
-
Parameters
Returns string
Static fetchBlocksFromExpression
- fetchBlocksFromExpression(inputExpression: string): List<string>
-
Parameters
Returns List<string>
Static getArguments
- getArguments(expression: string): List<string>
-
Parameters
Returns List<string>
Static getFirstArgumentFromExpression
- getFirstArgumentFromExpression(expression: string): string
-
Parameters
Returns string
Static getFunction
- getFunction(expression: string): string
-
Parameters
Returns string
Static isAggregationFunctionPresent
- isAggregationFunctionPresent(expression: string): boolean
-
Parameters
Returns boolean
Static isExpression
- isExpression(str: string): boolean
-
Parameters
Returns boolean
Static isFunctionPresent
- isFunctionPresent(expression: string): boolean
-
Parameters
Returns boolean
Static isPercentOfGrandTotal
- isPercentOfGrandTotal(expression: string): boolean
-
Parameters
Returns boolean
Static isTimeExpression
- isTimeExpression(str: string): boolean
-
Parameters
Returns boolean
Static parseReportExpression
- parseReportExpression(report: IStiReport, text: string, withBraces: boolean, allowReturnNull?: boolean): string
-
Parameters
-
-
text: string
-
withBraces: boolean
-
Default value allowReturnNull: boolean = false
Returns string
Static prepareExpression
- prepareExpression(expression: string): string
-
Parameters
Returns string
Static removeFunction
- removeFunction(expression: string): string
-
Parameters
Returns string
Static removeRelations
-
Parameters
Returns string
Static replaceExpressionBlocksByValues
- replaceExpressionBlocksByValues(inputExpression: string, values: List<string>): string
-
Parameters
-
inputExpression: string
-
values: List<string>
Returns string
Static replaceFunction
- replaceFunction(expression: string, newFunction: string): string
-
Parameters
-
expression: string
-
newFunction: string
Returns string