- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for NotationConverter (0.24 sec)
-
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/NotationConverter.java
* * <p>This interface represents an SPI used to implement notation parsers, not the API to use to perform the conversions. Use {@link NotationParser} instead for this. */ public interface NotationConverter<N, T> { /** * Attempt to convert the given notation. * * @throws TypeConversionException when the notation is recognized but cannot be converted for some reason. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 15 16:06:48 UTC 2017 - 1.4K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/CompositeNotationConverter.java
import org.gradle.internal.exceptions.DiagnosticsVisitor; import java.util.List; public class CompositeNotationConverter<N, T> implements NotationConverter<N, T> { private final List<NotationConverter<? super N, ? extends T>> converters; public CompositeNotationConverter(List<NotationConverter<? super N, ? extends T>> converters) { this.converters = converters; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 10:39:11 UTC 2019 - 1.6K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/NotationParserBuilder.java
} private NotationParser<N, T> create() { NotationConverter<? super N, ? extends T> notationConverter; if (notationParsers.size() == 1) { notationConverter = notationParsers.get(0); } else { notationConverter = new CompositeNotationConverter<>(notationParsers); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 27 20:34:59 UTC 2020 - 6.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/typeconversion/NotationParserBuilderSpec.groovy
expect: parser.parseNotation(12) == "[12]" } def "can add multiple converters"() { def converter1 = Mock(NotationConverter) def converter2 = Mock(NotationConverter) given: _ * converter1.convert(12, _) >> { Object n, NotationConvertResult result -> result.converted("[12]") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 12 07:56:08 UTC 2021 - 6.1K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/CharSequenceNotationConverter.java
import org.gradle.internal.exceptions.DiagnosticsVisitor; class CharSequenceNotationConverter<N, T> implements NotationConverter<N, T> { private final NotationConverter<? super String, ? extends T> delegate; public CharSequenceNotationConverter(NotationConverter<? super String, ? extends T> delegate) { this.delegate = delegate; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 10:39:11 UTC 2019 - 1.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/typeconversion/CrossBuildCachingNotationConverter.java
import org.gradle.cache.internal.CrossBuildInMemoryCache; import org.gradle.internal.exceptions.DiagnosticsVisitor; /** * A {@link NotationConverter} that caches the result of conversion across build invocations. */ public class CrossBuildCachingNotationConverter<T> implements NotationConverter<Object, T> { private final CrossBuildInMemoryCache<Object, T> cache; private final NotationConverterToNotationParserAdapter<Object, T> delegate;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 02 07:28:58 UTC 2020 - 1.7K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/TypeFilteringNotationConverter.java
import org.gradle.internal.exceptions.DiagnosticsVisitor; class TypeFilteringNotationConverter<N, S, T> implements NotationConverter<N, T> { private final Class<S> type; private final NotationConverter<? super S, ? extends T> delegate; public TypeFilteringNotationConverter(Class<S> type, NotationConverter<? super S, ? extends T> delegate) { this.type = type; this.delegate = delegate; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 10:39:11 UTC 2019 - 1.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/notations/DependencyNotationParser.java
Interner<String> stringInterner) { NotationConverter<String, ? extends ExternalModuleDependency> stringNotationConverter = new DependencyStringNotationConverter<>(instantiator, DefaultExternalModuleDependency.class, stringInterner); NotationConverter<MinimalExternalModuleDependency, ? extends MinimalExternalModuleDependency> minimalExternalDependencyNotationConverter =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 28 20:27:07 UTC 2024 - 8.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/OptionValueNotationParserFactory.java
NotationConverter<CharSequence, JavaVersion> converter = new JavaVersionFromCharSequenceNotationConverter(); return Cast.uncheckedCast(new NotationConverterToNotationParserAdapter<>(converter)); } else if (targetType.isEnum()) { @SuppressWarnings({"rawtypes", "unchecked"})
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 15:43:28 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/notations/DependencyProjectNotationConverter.java
import org.gradle.internal.typeconversion.NotationConvertResult; import org.gradle.internal.typeconversion.NotationConverter; import org.gradle.internal.typeconversion.TypeConversionException; public class DependencyProjectNotationConverter implements NotationConverter<Project, ProjectDependency> { private final DefaultProjectDependencyFactory factory;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.7K bytes - Viewed (0)