Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ReflectionValueExtractor (0.15 sec)

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

     * using {@code asXxx} or {@code toXxx} prefixes are also supported.
     *
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public class ReflectionValueExtractor {
        private static final Object[] OBJECT_ARGS = new Object[0];
    
        /**
         * Use a WeakHashMap here, so the keys (Class objects) can be garbage collected.
    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/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

            Object value = new ValueHolder(list);
    
            assertNull(ReflectionValueExtractor.evaluate("h.value[", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[]", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[a]", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[0", value));
            assertNull(ReflectionValueExtractor.evaluate("h.value[0)", value));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ObjectBasedValueSource.java

         * <p><b>NOTE:</b> The object-graph nagivation actually takes place via the
         * {@link ReflectionValueExtractor} class.</p>
         */
        public Object getValue(String expression) {
            if (expression == null || expression.trim().isEmpty()) {
                return null;
            }
    
            try {
                return ReflectionValueExtractor.evaluate(expression, root, false);
            } catch (Exception e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top