- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 19 for invokable (0.31 seconds)
-
android/guava/src/com/google/common/reflect/Invokable.java
public final <R1 extends R> Invokable<T, R1> returning(TypeToken<R1> returnType) { checkArgument( returnType.isSupertypeOf(getReturnType()), "Invokable is known to return %s, not %s", getReturnType(), returnType); @SuppressWarnings("unchecked") // guarded by previous check Invokable<T, R1> specialized = (Invokable<T, R1>) this;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 18.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
ImmutableList.Builder<Invokable<?, ?>> builder = ImmutableList.builder(); for (Method method : cls.getDeclaredMethods()) { Invokable<?, ?> invokable = Invokable.from(method); invokable.setAccessible(true); if (invokable.isPublic() && invokable.isStatic() && !invokable.isSynthetic()) { builder.add(invokable); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 32.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
@Override boolean isNullable(Invokable<?, ?> invokable) { return containsNullable(invokable.getAnnotations()); } @Override boolean isNullable(Parameter param) { return containsNullable(param.getAnnotations()); } }; abstract boolean isNullable(Invokable<?, ?> invokable); abstract boolean isNullable(Parameter param); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 24.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/NullPointerTester.java
if (isPrimitiveOrNullable(invokable.getParameters().get(paramIndex))) { return; // there's nothing to test } @Nullable Object[] params = buildParamList(invokable, paramIndex); try { @SuppressWarnings("unchecked") // We'll get a runtime exception if the type is wrong. Invokable<Object, ?> unsafe = (Invokable<Object, ?>) invokable;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 25.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
assertTrue(invokable.isAbstract()); assertFalse(invokable.isFinal()); assertTrue(invokable.isAnnotationPresent(Tested.class)); } public void testOverridableMethod() throws Exception { Invokable<?, Object> invokable = A.method("overridableMethod"); assertTrue(invokable.isPackagePrivate()); assertFalse(invokable.isAbstract()); assertFalse(invokable.isFinal());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
ImmutableList.Builder<Invokable<?, ?>> builder = ImmutableList.builder(); for (Method method : cls.getDeclaredMethods()) { Invokable<?, ?> invokable = Invokable.from(method); invokable.setAccessible(true); if (invokable.isPublic() && invokable.isStatic() && !invokable.isSynthetic()) { builder.add(invokable); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 32.5K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/Parameter.java
this.annotatedType = annotatedType; } /** Returns the type of the parameter. */ public TypeToken<?> getType() { return type; } /** Returns the {@link Invokable} that declares this parameter. */ public Invokable<?, ?> getDeclaringInvokable() { return declaration; } @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/DummyProxy.java
} @Override protected @Nullable Object handleInvocation( Object proxy, Method method, @Nullable Object[] args) { Invokable<?, ?> invokable = interfaceType.method(method); ImmutableList<Parameter> params = invokable.getParameters(); for (int i = 0; i < args.length; i++) { Parameter param = params.get(i); if (!isNullable(param)) { checkNotNull(args[i]);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 22:10:29 GMT 2025 - 4.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/DummyProxy.java
} @Override protected @Nullable Object handleInvocation( Object proxy, Method method, @Nullable Object[] args) { Invokable<?, ?> invokable = interfaceType.method(method); ImmutableList<Parameter> params = invokable.getParameters(); for (int i = 0; i < args.length; i++) { Parameter param = params.get(i); if (!isNullable(param)) { checkNotNull(args[i]);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 22:10:29 GMT 2025 - 4.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
throws NoSuchMethodException { Method getMethod = List.class.getMethod("get", int.class); Invokable<T, String> invokable = new TypeToken<T>(getClass()) {}.method(getMethod).returning(String.class); assertEquals(TypeToken.of(String.class), invokable.getReturnType()); } public <T extends List<String>> void testMethod_parameterTypes() throws NoSuchMethodException {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0)