Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getMethodNames (0.2 sec)

  1. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

            final Map<String, Object> map = newHashMap();
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(annotation.annotationType());
            for (final String name : beanDesc.getMethodNames()) {
                final Object v = getProperty(beanDesc, annotation, name);
                if (v != null) {
                    map.put(name, v);
                }
            }
            return map;
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/BeanDesc.java

     * }
     *
     * for (ConstructorDesc constructorDesc : beanDesc.getConstructorDescs()) {
     *     constructorDesc.newInstance(...); // Foo のインスタンスを生成
     * }
     *
     * for (String methodName : beanDesc.getMethodNames()) {
     *     for (MethodDesc methodDesc : beanDesc.getMethodDescs(methodName)) {
     *         methodDesc.invoke(foo, ...); // Foo のメソッドを起動
     *     }
     * }
     * </pre>
     *
     * @author higa
     * @see BeanDescFactory
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testGetMethodNames() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(getClass());
            final String[] names = beanDesc.getMethodNames();
            for (final String name : names) {
                System.out.println(name);
            }
            assertThat(names.length > 0, is(true));
        }
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            assertArgumentNotEmpty("methodName", methodName);
    
            return methodDescsCache.containsKey(methodName);
        }
    
        @Override
        public String[] getMethodNames() {
            return methodDescsCache.keySet().toArray(new String[methodDescsCache.size()]);
        }
    
        /**
         * {@link PropertyDesc}を返します。
         *
         * @param propertyName
         *            プロパティ名
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 26.1K bytes
    - Viewed (0)
Back to top