Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for invoke (0.2 sec)

  1. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            assertArgumentNotNull("target", target);
    
            try {
                assertState(readable, propertyName + " is not readable.");
                if (hasReadMethod()) {
                    return MethodUtil.invoke(readMethod, target, EMPTY_ARGS);
                }
                return FieldUtil.get(field, target);
            } catch (final Throwable t) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/AnnotationUtil.java

            final MethodDesc methodDesc = beanDesc.getMethodDescNoException(name);
            if (methodDesc == null) {
                return null;
            }
            final Object value = methodDesc.invoke(annotation);
            if (value == null || "".equals(value)) {
                return null;
            }
            return value;
        }
    
    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)
  3. src/main/java/org/codelibs/core/beans/BeanDesc.java

     *     constructorDesc.newInstance(...); // Foo のインスタンスを生成
     * }
     *
     * for (String methodName : beanDesc.getMethodNames()) {
     *     for (MethodDesc methodDesc : beanDesc.getMethodDescs(methodName)) {
     *         methodDesc.invoke(foo, ...); // Foo のメソッドを起動
     *     }
     * }
     * </pre>
     *
     * @author higa
     * @see BeanDescFactory
     */
    public interface BeanDesc {
    
        /**
         * Beanのクラスを返します。
         *
         * @param <T>
    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)
  4. src/main/java/org/codelibs/core/beans/MethodDesc.java

         *            メソッドの戻り値の型
         * @param target
         *            対象のオブジェクト。{@literal null}であってはいけません
         * @param args
         *            メソッドの引数
         * @return メソッドの戻り値
         */
        <T> T invoke(Object target, Object... args);
    
        /**
         * staticなメソッドを呼び出してその戻り値を返します。
         *
         * @param <T>
         *            メソッドの戻り値の型
         * @param args
         *            メソッドの引数
         * @return メソッドの戻り値
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/MethodUtil.java

         * @see Method#invoke(Object, Object[])
         */
        @SuppressWarnings("unchecked")
        public static <T> T invoke(final Method method, final Object target, final Object... args)
                throws InvocationTargetRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("method", method);
    
            try {
                return (T) method.invoke(target, args);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

            assertThat(foo.isPublic(), is(true));
            assertThat(foo.isStatic(), is(not(true)));
            assertThat(foo.isFinal(), is(not(true)));
            assertThat(foo.isAbstract(), is(not(true)));
            assertThat(foo.invoke(new MyBean()), is((Object) "hoge"));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = MethodNotStaticRuntimeException.class)
        public void testFoo_InvokeStatic() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
        @Override
        public <T> T invoke(final Object target, final Object... args) {
            assertArgumentNotNull("target", target);
    
            return MethodUtil.invoke(method, target, args);
        }
    
        @Override
        public <T> T invokeStatic(final Object... args) {
            if (!isStatic()) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. src/main/resources/CLMessages.properties

    ECL0017=Exception occurred, because {0}
    ECL0041={0}''s creation failure, because {1}
    ECL0040=IOException occurred, because {0}
    ECL0042=An illegal access was generated by {0}, because {1}
    ECL0043=The target which {0} invoked is illegal, because {1}
    ECL0044=Class not found, details are {0}
    ECL0048=The constructor of {0} for arguments({1}) not found
    ECL0049=The method({1}) of {0} not found
    ECL0050=Can not parse, because {0}
    Properties
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:58:02 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/StringUtil.java

        static {
            try {
                final Class<?> sharedSecretsClass = Class.forName("sun.misc.SharedSecrets");
                javaLangAccess = sharedSecretsClass.getDeclaredMethod("getJavaLangAccess").invoke(null);
                final Class<?> javaLangAccessClass = Class.forName("sun.misc.JavaLangAccess");
                newStringUnsafeMethod = javaLangAccessClass.getMethod("newStringUnsafe", char[].class);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.7K bytes
    - Viewed (0)
Back to top