- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for visitTypeProblem (0.22 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/validation/ReplayingTypeValidationContext.java
private final List<BiConsumer<String, TypeValidationContext>> problems = new ArrayList<>(); @Override public void visitTypeProblem(Action<? super TypeAwareProblemBuilder> problemSpec) { problems.add((ownerProperty, validationContext) -> validationContext.visitTypeProblem(problemSpec)); } @Override public void visitPropertyProblem(Action<? super TypeAwareProblemBuilder> problemSpec) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/validation/TypeValidationContext.java
* Callers are encouraged to provide as much information as they can on * the problem following the problem builder instructions. * * @param problemSpec the problem builder */ void visitTypeProblem(Action<? super TypeAwareProblemBuilder> problemSpec); /** * Visits a validation problem associated with the given property. * Callers are encouraged to provide as much information as they can on
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ValidateStepTest.groovy
- ${validationProblem}""" } _ * work.validate(_ as WorkValidationContext) >> { WorkValidationContext validationContext -> validationContext.forType(JobType, true).visitTypeProblem { it .withAnnotationType(Object) .id("test-problem", "Validation error", GradleCoreProblemGroup.validation())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/DefaultPropertyValidationContext.java
this.reservedFileSystemLocationRegistry = reservedFileSystemLocationRegistry; this.delegate = delegate; } @Override public void visitTypeProblem(Action<? super TypeAwareProblemBuilder> problemSpec) { delegate.visitTypeProblem(problemSpec); } @Override public void visitPropertyProblem(Action<? super TypeAwareProblemBuilder> problemSpec) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jul 11 09:16:19 UTC 2023 - 2.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/plugins/SoftwareTypeRegistrationPluginTarget.java
.map(annotation -> annotation.get().name()) .sorted() .collect(Collectors.toList()); if (exposedSoftwareTypes.isEmpty()) { typeValidationContext.visitTypeProblem(problem -> problem.withAnnotationType(softwareTypePluginImplClass) .id("missing-software-type", "Missing software type annotation", GradleCoreProblemGroup.validation().type())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 16:02:28 UTC 2024 - 8.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/annotations/TestAnnotationHandlingSupport.groovy
void validateTypeMetadata(Class<?> classWithAnnotationAttached, TypeValidationContext visitor) { if (classWithAnnotationAttached.getAnnotation(ThisIsAThing)?.invalid()) { visitor.visitTypeProblem { it.label("Annotated as invalid thing!") } } } } private static class SimplePropertyAnnotationHandler extends AbstractPropertyAnnotationHandler {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:42:35 UTC 2024 - 5.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/AbstractTypeAnnotationHandler.java
Class<?> classWithAnnotationAttached, TypeValidationContext visitor, Class<? extends Annotation> annotationType, Class<?>... appliesOnlyTo ) { visitor.visitTypeProblem(problem -> problem.withAnnotationType(classWithAnnotationAttached) .id("invalid-use-of-type-annotation", "Incorrect use of type annotation", GradleCoreProblemGroup.validation().type())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 09:10:37 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/ProblemRecordingTypeValidationContext.java
@Nullable Class<?> rootType, Supplier<Optional<PluginId>> pluginId ) { this.rootType = rootType; this.pluginId = pluginId; } @Override public void visitTypeProblem(Action<? super TypeAwareProblemBuilder> problemSpec) { recordProblem(getDefaultTypeAwareProblemBuilder(problemSpec).build()); } private Optional<PluginId> pluginId() { return pluginId.get();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 08:30:15 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidateAction.java
String untrackedTaskAnnotation = "@" + UntrackedTask.class.getSimpleName(); String workType = isTask ? "task" : "transform action"; validationContext.visitTypeProblem(problem -> { ProblemSpec builder = problem .withAnnotationType(topLevelBean)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 09:10:37 UTC 2024 - 10.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStore.java
String fieldName = entry.getKey(); ImmutableMap<Class<? extends Annotation>, Annotation> fieldAnnotations = entry.getValue(); validationContext.visitTypeProblem(problem -> problem .withAnnotationType(type)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:36 UTC 2024 - 37.6K bytes - Viewed (0)