SHARE
TWEET

Untitled

a guest Jul 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static Map<String, Object> createParameterMap(@NotNull Map<String, Object> args) {
  2.     // Create the data model.
  3.     final Map<String, Object> paramMap = new HashMap<>();
  4.  
  5.     // Builtin conversion methods
  6.     paramMap.put("activityToLayout", new FmActivityToLayoutMethod());
  7.     paramMap.put("camelCaseToUnderscore", new FmCamelCaseToUnderscoreMethod());
  8.     paramMap.put("classToResource", new FmClassNameToResourceMethod());
  9.     paramMap.put("compareVersions", new FmCompareVersionsMethod());
  10.     paramMap.put("compareVersionsIgnoringQualifiers", new FmCompareVersionsIgnoringQualifiersMethod());
  11.     paramMap.put("escapePropertyValue", new FmEscapePropertyValueMethod());
  12.     paramMap.put("escapeXmlAttribute", new FmEscapeXmlAttributeMethod());
  13.     paramMap.put("escapeXmlString", new FmEscapeXmlStringMethod());
  14.     paramMap.put("escapeXmlText", new FmEscapeXmlStringMethod());
  15.     paramMap.put("extractLetters", new FmExtractLettersMethod());
  16.     paramMap.put("getAppManifestDir", new FmGetAppManifestDirMethod(paramMap));
  17.     paramMap.put("getApplicationTheme", new FmGetApplicationThemeMethod(paramMap));
  18.     paramMap.put("isAndroidxEnabled", new FmIsAndroidxEnabledMethod(paramMap));
  19.     paramMap.put("getConfigurationName", new FmGetConfigurationNameMethod(paramMap));
  20.     paramMap.put("getMaterialComponentName", new FmGetMaterialComponentNameMethod());
  21.     paramMap.put("hasDependency", new FmHasDependencyMethod(paramMap));
  22.     paramMap.put("isGradleComponentPluginUsed", new FmIsGradleComponentPluginUsed(paramMap));
  23.     paramMap.put("layoutToActivity", new FmLayoutToActivityMethod());
  24.     paramMap.put("slashedPackageName", new FmSlashedPackageNameMethod());
  25.     paramMap.put("truncate", new FmTruncateStringMethod());
  26.     paramMap.put("underscoreToCamelCase", new FmUnderscoreToCamelCaseMethod());
  27.     paramMap.put("escapeKotlinIdentifiers", new FmEscapeKotlinIdentifierMethod());
  28.  
  29.     // Dependencies multimap. Doesn't store duplicates, preserves insertion order.
  30.     paramMap.put(TemplateMetadata.ATTR_DEPENDENCIES_MULTIMAP, LinkedHashMultimap.create());
  31.  
  32.     // Parameters supplied by user
  33.     paramMap.putAll(args);
  34.  
  35.     return paramMap;
  36.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top