Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getFieldValue (1.41 sec)

  1. src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java

            assertThat(parameterizedClassDesc.getRawClass(), is(sameClass(Class.class)));
            final MyBean myBean = new MyBean();
            aaa.setFieldValue(myBean, String.class);
            assertThat(aaa.getFieldValue(myBean), is(sameClass(String.class)));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = FieldNotStaticRuntimeException.class)
        public void testAaa_GetStaticFieldValue() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/FieldDesc.java

         * @param <T>
         *            the type of the field
         * @param target
         *            the target object. Must not be {@literal null}
         * @return the value of the {@link Field}
         */
        <T> T getFieldValue(Object target);
    
        /**
         * Returns the value of the static {@link Field}.
         *
         * @param <T>
         *            the type of the field
         * @return the value of the {@link Field}
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/FieldDescImpl.java

            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public <T> T getFieldValue(final Object target) {
            assertArgumentNotNull("target", target);
    
            return FieldUtil.get(field, target);
        }
    
        @Override
        public <T> T getStaticFieldValue() {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/BeanDesc.java

     *     propertyDesc.getValue(foo); // Retrieve the value of Foo's property
     * }
     *
     * for (FieldDesc fieldDesc : beanDesc.getFieldDescs()) {
     *     fieldDesc.getFieldValue(foo); // Retrieve the value of Foo's field
     * }
     *
     * for (ConstructorDesc constructorDesc : beanDesc.getConstructorDescs()) {
     *     constructorDesc.newInstance(...); // Create an instance of Foo
     * }
     *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top