- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for getConstructor (0.4 sec)
-
src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java
final ConstructorDesc ctor = beanDesc.getConstructorDesc(); assertThat(ctor, is(notNullValue())); assertThat(ctor.getBeanDesc(), is(sameInstance(beanDesc))); assertThat(ctor.getConstructor(), is((Constructor) MyBean.class.getConstructor())); assertThat(ctor.getParameterTypes().length, is(0)); assertThat(ctor.isPublic(), is(true)); final MyBean myBean = ctor.newInstance();
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java
} } @Override public BeanDesc getBeanDesc() { return beanDesc; } @SuppressWarnings("unchecked") @Override public <T> Constructor<T> getConstructor() { return (Constructor<T>) constructor; } @Override public Class<?>[] getParameterTypes() { return parameterTypes; } @Override public boolean isPublic() {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
} /** * */ @Test(expected = NoSuchConstructorRuntimeException.class) public void testGetConstructor() { ClassUtil.getConstructor(ClassUtilTest.class, Integer.class); } /** * */ @Test(expected = NoSuchFieldRuntimeException.class) public void testGetField() {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
Constructor<String> constructor = String.class.getConstructor(); assertThrows( IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor)); } public void testConstructor_declaredBySuperclass() throws NoSuchMethodException { Constructor<Object> constructor = Object.class.getConstructor(); assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
Constructor<String> constructor = String.class.getConstructor(); assertThrows( IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor)); } public void testConstructor_declaredBySuperclass() throws NoSuchMethodException { Constructor<Object> constructor = Object.class.getConstructor(); assertThrows(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/internal/Finalizer.java
+ "inherit thread local values."); return null; } } @CheckForNull private static Constructor<Thread> getBigThreadConstructor() { try { return Thread.class.getConstructor( ThreadGroup.class, Runnable.class, String.class, long.class, boolean.class); } catch (Throwable t) { // Probably pre Java 9. We'll fall back to Thread.inheritableThreadLocals. return null;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Aug 23 12:54:09 UTC 2023 - 9.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
* 一致するコンストラクタが見つからない場合 * @see Class#getConstructor(Class...) */ public static <T> Constructor<T> getConstructor(final Class<T> clazz, final Class<?>... argTypes) throws NoSuchConstructorRuntimeException { assertArgumentNotNull("clazz", clazz); try { return clazz.getConstructor(argTypes); } catch (final NoSuchMethodException e) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
new AtomicReference<Object>(sepFrqC.getDeclaredConstructor().newInstance()); Class<?> sepFwrC = sepLoader.loadClass(MyFinalizableWeakReference.class.getName()); Constructor<?> sepFwrCons = sepFwrC.getConstructor(Object.class, sepFrqC); // The object that we will wrap in FinalizableWeakReference is a Stopwatch. Class<?> sepStopwatchC = sepLoader.loadClass(Stopwatch.class.getName());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 13.3K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java
* @return Instance of given implementation, constructed using the given string */ private static <T> T newImplementation(final Class<T> clazz, final String value) { try { return clazz.getConstructor(String.class).newInstance(value); } catch (final Exception e) { final Throwable cause = e instanceof InvocationTargetException ? e.getCause() : e;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 15.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
assertTrue(delegate.isVarArgs()); } public void testGetOwnerType_constructor() throws Exception { Invokable<String, String> invokable = Invokable.from(String.class.getConstructor()); assertEquals(TypeToken.of(String.class), invokable.getOwnerType()); } public void testGetOwnerType_method() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0)