Class DcsExprUtils
java.lang.Object
com.e1c.langtool.v8.dt.dcs.expressions.DcsExprUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatStringLiteralValue(String value) Format string literal value for Expression.getNlsLocalStrings(org.eclipse.emf.ecore.EObject object) Gets the nls local strings as a map of language code and value.static String[]Gets the string literal list expression parts, which separated by comma.static StringgetStringLiteralValue(StringLiteral object) Gets the Expression string literal value with replaced beginning, ending quotes and double-quotes in content.static Booleanstatic booleanisNls(org.eclipse.emf.ecore.EObject object)
-
Field Details
-
DOUBLE_QUOTE
- See Also:
-
QUTE
- See Also:
-
DCS_EXPR_FILE_EXT
- See Also:
-
-
Method Details
-
getStringLiteralValue
Gets the Expression string literal value with replaced beginning, ending quotes and double-quotes in content.- Parameters:
object- the object, cannot benull.- Returns:
- the string literal value, can be
null.
-
formatStringLiteralValue
Format string literal value for Expression.- Parameters:
value- the value, can benull.- Returns:
- the string, can be
null.
-
isNls
public static boolean isNls(org.eclipse.emf.ecore.EObject object) -
isNls
-
getNlsLocalStrings
Gets the nls local strings as a map of language code and value.- Parameters:
object- the object- Returns:
- the nls local strings, cannot return
null
-
getStringLiteralListExpressionParts
Gets the string literal list expression parts, which separated by comma.- Parameters:
literal- the literal, cannot benull.- Returns:
- the string literal list expression parts
-