Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for objects (0.3 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy

    import java.util.regex.Pattern
    
    abstract class AbstractSuperClassChangesRule extends AbstractGradleViolationRule {
    
        private final List<Pattern> publicApiPatterns
    
        AbstractSuperClassChangesRule(Map<String, Object> params) {
            super(params)
            final List<String> publicApiPatterns = (List<String>)params['publicApiPatterns'];
            this.publicApiPatterns = publicApiPatterns.collect { Pattern.compile(it) }
        }
    
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/Docbook2Xhtml.groovy

            def destDir = destinationDirectory.get().asFile
            fs.delete {
                delete(destDir, temporaryDir)
            }
    
            def xslClasspath = classpath.plus(objects.fileCollection().from(ClasspathUtil.getClasspathForClass(XslTransformer)))
    
            fs.copy {
                from(getStylesheetDirectory()) {
                    include "**/*.xml"
                    include "*.xsl"
                }
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 05 19:36:14 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/TypeMetaDataTest.groovy

            expect:
            type.rawType.signature == 'org.gradle.SomeType'
        }
    
        def rawTypeForWildcardType() {
            type.setWildcard()
    
            expect:
            type.rawType.signature == 'java.lang.Object'
        }
    
        def rawTypeForWildcardWithUpperBound() {
            type.setUpperBounds(new TypeMetaData('OtherType'))
    
            expect:
            type.rawType.signature == 'OtherType'
        }
    
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.6K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/KotlinModifiersBreakingChangeRule.groovy

    import japicmp.model.JApiMethod
    import me.champeau.gradle.japicmp.report.Violation
    
    @CompileStatic
    class KotlinModifiersBreakingChangeRule extends AbstractGradleViolationRule {
    
        KotlinModifiersBreakingChangeRule(Map<String, Object> params) {
            super(params)
        }
    
        @Override
        Violation maybeViolation(JApiCompatibility member) {
    
            if (isNewOrRemoved(member) || !(member instanceof JApiMethod)) {
                return null
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

            }
            return null
        }
    
        private static List<Boolean> parametersNullabilityOf(CtBehavior behavior) {
            def annotations = behavior.parameterAnnotations as List<Object[]>
            annotations.collect { Object[] pAnn ->
                pAnn.flatten().any { isNullableCtAnnotation(it) }
            }
        }
    
        private static boolean hasNullableAnnotation(CtField field) {
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Apr 13 10:04:28 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/AbstractContextAwareRuleSpecification.groovy

            String getClassName() { return null }
    
            Map<String, ?> getUserData() { return userData }
    
            Object getUserData(String key) {
                return userData[key]
            }
    
            void putUserData(String key, Object value) {
                userData[key] = value
            }
        }
    
        ClassPool instanceScopedPool = new ClassPool()
    
        JApiClass apiClass = Stub(JApiClass)
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/ApiChange.groovy

     */
    
    package gradlebuild.binarycompatibility
    
    import groovy.transform.Immutable
    
    @Immutable
    class ApiChange {
        String type
        String member
        List<String> changes
    
        static ApiChange parse(Object json) {
            new ApiChange(json.type, json.member, json.changes ?: [])
        }
    
        String toString() {
            def formattedMember = member - "$type."
            "$type - $formattedMember - $changes"
        }
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 1023 bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ExtractDslMetaDataTask.groovy

            return super.getSource();
        }
    
        @TaskAction
        def extract() {
            Date start = new Date()
    
            //parsing all input files into metadata
            //and placing them in the repository object
            SimpleClassMetaDataRepository<gradlebuild.docs.dsl.source.model.ClassMetaData> repository = new SimpleClassMetaDataRepository<gradlebuild.docs.dsl.source.model.ClassMetaData>()
            int counter = 0
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/DomBuilder.groovy

            return element
        }
    
        protected Element createNode(Object name, Object value) {
            return createNode(name, [:], value)
        }
    
        protected void setParent(Object parent, Object child) {
            parent.appendChild(child)
        }
    
        def appendChild(Node node) {
            if (!current) {
                elements << (Element) document.importNode(node, true)
            } else  {
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.7K bytes
    - Viewed (0)
  10. build-logic/documentation/src/test/resources/org/gradle/test/GroovyClassWithConstants.groovy

    package org.gradle.test
    
    class GroovyClassWithConstants {
        static final int INT_CONST = 9
        public static final String STRING_CONST = 'some-string'
        static final Object OBJECT_CONST = new GroovyClassWithConstants()
        static final def BIG_DECIMAL_CONST = 1.02
    
        String ignored = 'ignore'
        final int ignored2 = 1001
        static def ignored3
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 356 bytes
    - Viewed (0)
Back to top