Class DcsExprUtils

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

public final class DcsExprUtils extends Object
  • Field Details

  • Method Details

    • getStringLiteralValue

      public static String getStringLiteralValue(StringLiteral object)
      Gets the Expression string literal value with replaced beginning, ending quotes and double-quotes in content.
      Parameters:
      object - the object, cannot be null.
      Returns:
      the string literal value, can be null.
    • formatStringLiteralValue

      public static String formatStringLiteralValue(String value)
      Format string literal value for Expression.
      Parameters:
      value - the value, can be null.
      Returns:
      the string, can be null.
    • isNls

      public static boolean isNls(org.eclipse.emf.ecore.EObject object)
    • isNls

      public static Boolean isNls(Function func)
    • getNlsLocalStrings

      public static Map<String,String> getNlsLocalStrings(org.eclipse.emf.ecore.EObject object)
      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

      public static String[] getStringLiteralListExpressionParts(StringLiteral literal)
      Gets the string literal list expression parts, which separated by comma.
      Parameters:
      literal - the literal, cannot be null.
      Returns:
      the string literal list expression parts