Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for findMethod (0.09 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

            String methodBase = Character.toTitleCase(property.charAt(0)) + property.substring(1);
            try {
                for (String prefix : Arrays.asList("get", "is", "to", "as")) {
                    Method method = classMap.findMethod(prefix + methodBase);
                    if (method != null) {
                        return method.invoke(value, OBJECT_ARGS);
                    }
                }
                return null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

         * @param name Method name.
         * @param params Method parameters.
         * @return The found method.
         * @throws MethodMap.AmbiguousException in case of duplicate methods.
         */
        public Method findMethod(String name, Object... params) throws MethodMap.AmbiguousException {
            String methodKey = makeMethodKey(name, params);
            Object cacheEntry = methodCache.get(methodKey);
    
            if (cacheEntry == CACHE_MISS) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top