Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 117 for setAnnotation (0.31 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/Sample.java

                    }
                    base.evaluate();
                }
            };
        }
    
        private String getSampleName(Description description) {
            UsesSample annotation = description.getAnnotation(UsesSample.class);
            return annotation != null
                ? annotation.value()
                : defaultSampleName;
        }
    
        public TestFile getDir() {
            if (sampleDir == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/model/annotations/ServiceReferencePropertyAnnotationHandler.java

            return true;
        }
    
        @Override
        public void visitPropertyValue(String propertyName, PropertyValue value, PropertyMetadata propertyMetadata, PropertyVisitor visitor) {
            propertyMetadata.getAnnotation(ServiceReference.class).ifPresent(annotation -> {
                String serviceName = annotation.value();
                TypeToken<?> declaredType = propertyMetadata.getDeclaredType();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/annotations/TestAnnotationHandlingSupport.groovy

                ThisIsAThing
            }
    
            @Override
            void validateTypeMetadata(Class<?> classWithAnnotationAttached, TypeValidationContext visitor) {
                if (classWithAnnotationAttached.getAnnotation(ThisIsAThing)?.invalid()) {
                    visitor.visitTypeProblem {
                        it.label("Annotated as invalid thing!")
                    }
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/processing/AggregatingProcessorTest.groovy

                getQualifiedName() >> Stub(Name) {
                    toString() >> name
                }
                getSimpleName() >> Stub(Name) {
                    toString() >> name
                }
                getAnnotation(Retention) >> Stub(Retention) {
                    value() >> retentionPolicy
                }
            }
        }
    
        Element method(Element parent) {
            Stub(ExecutableElement) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/PropertyAccessorExtractionContext.java

        }
    
        public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
            return annotations.containsKey(annotationType);
        }
    
        public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
            return Cast.uncheckedCast(annotations.get(annotationType));
        }
    
        public Collection<Annotation> getAnnotations() {
            return annotations.values();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedupdater.go

    	}
    
    	// Remove the annotation from the object before encoding the object
    	var annotations = accessor.GetAnnotations()
    	delete(annotations, LastAppliedConfigAnnotation)
    	accessor.SetAnnotations(annotations)
    
    	lastApplied, err := runtime.Encode(unstructured.UnstructuredJSONScheme, obj)
    	if err != nil {
    		return "", fmt.Errorf("couldn't encode object into last applied annotation: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/registry/AbstractAnnotationModelRuleExtractorTest.groovy

        def ruleDefinition = Mock(MethodRuleDefinition)
    
        protected abstract AbstractAnnotationDrivenComponentModelRuleExtractor getRuleHandler();
    
        abstract Class<? extends Annotation> getAnnotation();
    
        abstract Class<?> getRuleClass();
    
        def "handles methods annotated with @#annotationName"() {
            when:
            1 * ruleDefinition.isAnnotationPresent(annotation) >> false
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

                    extraInt = annotation.getMemberValue("xi")?.intValue ?: 0
                )
            }
    
        private
        inline fun <reified T : Any> CtClass.ctAnnotation(): Annotation? =
            getAnnotation(T::class.java)
                ?.takeIf { Proxy.isProxyClass(it::class.java) }
                ?.let { Proxy.getInvocationHandler(it) as? AnnotationImpl }
                ?.annotation
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 07 08:20:38 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/DefaultTaskCacheabilityResolver.java

        ) {
            if (cacheIfSpecs.isEmpty()) {
                if (task.getClass().isAnnotationPresent(DisableCachingByDefault.class)) {
                    DisableCachingByDefault doNotCacheAnnotation = task.getClass().getAnnotation(DisableCachingByDefault.class);
                    String reason = doNotCacheAnnotation.because();
                    if (reason.isEmpty()) {
                        return Optional.of(CACHING_DISABLED);
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 15 07:20:24 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go

    	if err != nil {
    		return nil, err
    	}
    	return accessor.GetAnnotations(), nil
    }
    
    func (resourceAccessor) SetAnnotations(obj runtime.Object, annotations map[string]string) error {
    	accessor, err := Accessor(obj)
    	if err != nil {
    		return err
    	}
    	accessor.SetAnnotations(annotations)
    	return nil
    }
    
    func (resourceAccessor) ResourceVersion(obj runtime.Object) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 16.5K bytes
    - Viewed (0)
Back to top