- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 117 for setAnnotation (0.22 sec)
-
guava/src/com/google/common/reflect/Parameter.java
return declaration; } @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { return getAnnotation(annotationType) != null; } @Override @CheckForNull public <A extends Annotation> A getAnnotation(Class<A> annotationType) { checkNotNull(annotationType); for (Annotation annotation : annotations) { if (annotationType.isInstance(annotation)) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 16 15:12:31 UTC 2023 - 4.6K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/NativeToolChainTestInterceptor.java
private boolean canUseToolChain(AvailableToolChains.ToolChainCandidate toolChain) { RequiresInstalledToolChain toolChainRequirement = target.getAnnotation(RequiresInstalledToolChain.class); if (toolChainRequirement != null) { return toolChain.meets(toolChainRequirement.value()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/PropertyAnnotationMetadata.java
Method getGetter(); String getPropertyName(); boolean isAnnotationPresent(Class<? extends Annotation> annotationType); <T extends Annotation> Optional<T> getAnnotation(Class<T> annotationType); ImmutableMap<AnnotationCategory, Annotation> getAnnotations(); TypeToken<?> getDeclaredType(); @Nullable Object getPropertyValue(Object object);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java
*/ @Hoge(bbb = "3") @Test public void testGetProperties() throws Exception { final Method m = ClassUtil.getMethod(getClass(), "testGetProperties"); final Annotation anno = m.getAnnotation(Hoge.class); final Map<String, Object> props = AnnotationUtil.getProperties(anno); assertThat((String) props.get("aaa"), is("123")); assertThat((String) props.get("bbb"), is("3"));
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.5K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java
} } } private boolean suppressCleanupErrors() { return suppressCleanupErrors || testClass().getAnnotation(LeaksFileHandles.class) != null || description.getAnnotation(LeaksFileHandles.class) != null; } private Class<?> testClass() { return description.getTestClass(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.7K bytes - Viewed (0) -
testing/internal-testing/src/test/groovy/org/gradle/testing/internal/util/ExpectedFailureRule.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/PropertyMetadata.java
import java.util.Optional; public interface PropertyMetadata { String getPropertyName(); boolean isAnnotationPresent(Class<? extends Annotation> annotationType); <T extends Annotation> Optional<T> getAnnotation(Class<T> annotationType); Optional<Annotation> getAnnotationForCategory(AnnotationCategory category); boolean hasAnnotationForCategory(AnnotationCategory category);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
final <T> T isSubtype(T sub) { Type returnType = method.getGenericReturnType(); Type paramType = getOnlyParameterType(); TestSubtype spec = method.getAnnotation(TestSubtype.class); assertWithMessage("%s is subtype of %s", paramType, returnType) .that(TypeToken.of(paramType).isSubtypeOf(returnType)) .isTrue();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 6.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/DefaultTaskClassInfoStore.java
private static TaskClassInfo createTaskClassInfo(Class<? extends Task> type) { boolean cacheable = type.isAnnotationPresent(CacheableTask.class); Optional<String> reasonNotToTrackState = Optional.ofNullable(type.getAnnotation(UntrackedTask.class)) .map(UntrackedTask::because); Map<String, Class<?>> processedMethods = new HashMap<>();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 14:04:47 UTC 2024 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go
u.SetUID("") u.SetResourceVersion("") u.SetGeneration(0) u.SetCreationTimestamp(metav1.Time{}) u.SetDeletionTimestamp(nil) u.SetDeletionGracePeriodSeconds(nil) u.SetLabels(nil) u.SetAnnotations(nil) u.SetOwnerReferences(nil) u.SetFinalizers(nil) u.SetManagedFields(nil) gotMetadata, _, err := unstructured.NestedFieldNoCopy(u.UnstructuredContent(), "metadata") if err != nil { t.Error(err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 5K bytes - Viewed (0)