Class StiExpressionHelper

Hierarchy

  • StiExpressionHelper

Index

Methods

Static compile

Static escapeExpression

  • escapeExpression(expression: string): string
  • Parameters

    • expression: string

    Returns string

Static fetchBlocksFromExpression

  • fetchBlocksFromExpression(inputExpression: string): List<string>
  • Parameters

    • inputExpression: string

    Returns List<string>

Static getArguments

  • getArguments(expression: string): List<string>
  • Parameters

    • expression: string

    Returns List<string>

Static getFirstArgumentFromExpression

  • getFirstArgumentFromExpression(expression: string): string
  • Parameters

    • expression: string

    Returns string

Static getFunction

  • getFunction(expression: string): string
  • Parameters

    • expression: string

    Returns string

Static isAggregationFunctionPresent

  • isAggregationFunctionPresent(expression: string): boolean
  • Parameters

    • expression: string

    Returns boolean

Static isExpression

  • isExpression(str: string): boolean
  • Parameters

    • str: string

    Returns boolean

Static isFunctionPresent

  • isFunctionPresent(expression: string): boolean
  • Parameters

    • expression: string

    Returns boolean

Static isPercentOfGrandTotal

  • isPercentOfGrandTotal(expression: string): boolean
  • Parameters

    • expression: string

    Returns boolean

Static isTimeExpression

  • isTimeExpression(str: string): boolean
  • Parameters

    • str: string

    Returns boolean

Static newExpression

  • Parameters

    • expression: string

    Returns Expression

Static parseReportExpression

  • parseReportExpression(report: IStiReport, text: string, withBraces: boolean, allowReturnNull?: boolean): string
  • Parameters

    • report: IStiReport
    • text: string
    • withBraces: boolean
    • Default value allowReturnNull: boolean = false

    Returns string

Static prepareExpression

  • prepareExpression(expression: string): string
  • Parameters

    • expression: string

    Returns string

Static removeFunction

  • removeFunction(expression: string): string
  • Parameters

    • expression: string

    Returns string

Static removeRelations

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

Generated using TypeDoc