Class StringLiteralInternalizeTokenProvider
java.lang.Object
com.e1c.langtool.v8.dt.dcs.expressions.StringLiteralInternalizeTokenProvider
Dually-named string literal content provider for DCS functions expression.
Also checks if literal content is an expression for
Eval functions.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLiteralEnumValue(Function function, StringLiteral literal, boolean isRussian) Gets the literal enum value of the string literal.getLiteralEnumValue(Function function, StringLiteral literal, ScriptVariant scriptVariant) Gets the literal enum value of the string literal.booleanisExpressionListLiteral(Function function, StringLiteral literal) Checks if the content of string literal is the list of expressions forEvalExpressionWithGroupByArrayorEvalExpressionWithGroupByValueTablefunctions, containing list separated by comma.booleanisExpressionLiteral(Function function, StringLiteral literal) Checks if the content of string literal is expression forEvalfunctions.
-
Field Details
-
EVAL_EXPRESSION_SORT_RU
-
EVAL_EXPRESSION_SORT_EN
-
-
Constructor Details
-
StringLiteralInternalizeTokenProvider
public StringLiteralInternalizeTokenProvider()
-
-
Method Details
-
isExpressionLiteral
Checks if the content of string literal is expression forEvalfunctions.- Parameters:
function- the function, cannot benull.literal- the literal, cannot benull.- Returns:
- true, if the literal content is expression literal
-
isExpressionListLiteral
Checks if the content of string literal is the list of expressions forEvalExpressionWithGroupByArrayorEvalExpressionWithGroupByValueTablefunctions, containing list separated by comma.- Parameters:
function- the function, cannot benull.literal- the literal, cannot benull.- 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 benull.literal- the literal, cannot benull.scriptVariant- the script variant, cannot benull.- Returns:
- the literal enum value
-
getLiteralEnumValue
Gets the literal enum value of the string literal.- Parameters:
function- the function, cannot benull.literal- the literal, cannot benull.isRussian- the is russian- Returns:
- the literal enum value
-