protected Map<String, Method> parsingMethods() { Map<String, Method> map = new HashMap<String, Method>(css .getTotalProperties(), 1.0f); for (String key : css.getDefinedPropertyNames()) { try { Method m = DeclarationTransformer.class.getDeclaredMethod( DeclarationTransformer.camelCase("process-" + key), Declaration.class, Map.class, Map.class); map.put(key, m); } catch (Exception e) { log.warn("Unable to find method for property {}.", key); } } log.info("Totally found {} parsing methods", map.size()); return map; }
protected Map<String, Method> parsingMethods() { Map<String, Method> map = new HashMap<String, Method>(css .getTotalProperties(), 1.0f); for (String key : css.getDefinedPropertyNames()) { try { Method m = DeclarationTransformer.class.getDeclaredMethod( DeclarationTransformer.camelCase("process-" + key), Declaration.class, Map.class, Map.class); map.put(key, m); } catch (Exception e) { log.warn("Unable to find method for property {}.", key); } } log.info("Totally found {} parsing methods", map.size()); return map; }