Class StringLiteralInternalizeTokenProvider

java.lang.Object
com.e1c.langtool.v8.dt.dcs.expressions.StringLiteralInternalizeTokenProvider

public class StringLiteralInternalizeTokenProvider extends Object
Dually-named string literal content provider for DCS functions expression. Also checks if literal content is an expression for Eval functions.
  • Field Details

    • EVAL_EXPRESSION_SORT_RU

      public static final String[] EVAL_EXPRESSION_SORT_RU
    • EVAL_EXPRESSION_SORT_EN

      public static final String[] EVAL_EXPRESSION_SORT_EN
  • Constructor Details

    • StringLiteralInternalizeTokenProvider

      public StringLiteralInternalizeTokenProvider()
  • Method Details

    • isExpressionLiteral

      public boolean isExpressionLiteral(Function function, StringLiteral literal)
      Checks if the content of string literal is expression for Eval functions.
      Parameters:
      function - the function, cannot be null.
      literal - the literal, cannot be null.
      Returns:
      true, if the literal content is expression literal
    • isExpressionListLiteral

      public boolean isExpressionListLiteral(Function function, StringLiteral literal)
      Checks if the content of string literal is the list of expressions for EvalExpressionWithGroupByArray or EvalExpressionWithGroupByValueTable functions, containing list separated by comma.
      Parameters:
      function - the function, cannot be null.
      literal - the literal, cannot be null.
      Returns:
      true, if the literal content is expression list literal
    • getLiteralEnumValue

      public String getLiteralEnumValue(Function function, StringLiteral literal, ScriptVariant scriptVariant)
      Gets the literal enum value of the string literal.
      Parameters:
      function - the function, cannot be null.
      literal - the literal, cannot be null.
      scriptVariant - the script variant, cannot be null.
      Returns:
      the literal enum value
    • getLiteralEnumValue

      public String getLiteralEnumValue(Function function, StringLiteral literal, boolean isRussian)
      Gets the literal enum value of the string literal.
      Parameters:
      function - the function, cannot be null.
      literal - the literal, cannot be null.
      isRussian - the is russian
      Returns:
      the literal enum value