Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for INVOKESTATIC (0.25 sec)

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

            final MethodDesc foo = beanDesc.getMethodDesc("foo");
            assertThat(foo.getParameterTypes().length, is(0));
            assertThat(foo.isStatic(), is(not(true)));
            foo.invokeStatic();
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testBar() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/services/NativeServicesInitializationTest.groovy

            JavaMethod nativeServicesGetInstance = JavaMethod.ofStatic(nativeServicesClass, nativeServicesClass, "getInstance")
    
            when:
            nativeServicesGetInstance.invokeStatic()
    
            then:
            def e = thrown(IllegalStateException)
            e.message == "Cannot get an instance of NativeServices without first calling initialize()."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 08:51:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/MethodDescImpl.java

            return MethodUtil.invoke(method, target, args);
        }
    
        @Override
        public <T> T invokeStatic(final Object... args) {
            if (!isStatic()) {
                throw new MethodNotStaticRuntimeException(getBeanDesc().getBeanClass(), methodName);
            }
            return MethodUtil.invokeStatic(method, args);
        }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/MethodDesc.java

        /**
         * staticなメソッドを呼び出してその戻り値を返します。
         *
         * @param <T>
         *            メソッドの戻り値の型
         * @param args
         *            メソッドの引数
         * @return メソッドの戻り値
         */
        <T> T invokeStatic(Object... args);
    
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top