Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for CtClass (0.22 sec)

  1. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

            else -> error("Unsupported japicmp member type '${this::class}'")
        }
    
    
    /**
     * [CtClass] or [CtMember].
     */
    private
    typealias CtClassOrCtMember = Any
    
    
    private
    val CtClassOrCtMember.declaringClass: CtClass
        get() = when (this) {
            is CtClass -> declaringClass ?: this
            is CtMember -> declaringClass
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 04 08:05:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

    object KotlinMetadataQueries {
    
        fun isKotlinFileFacadeClass(ctClass: CtClass): Boolean =
            if (Modifier.isPrivate(ctClass.modifiers)) false
            else queryKotlinMetadata(ctClass) { metadata ->
                when (metadata) {
                    is KotlinClassMetadata.FileFacade -> true
                    else -> false
                }
            }
    
        fun isKotlinInternal(ctClass: CtClass): Boolean =
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 12:41:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRule.groovy

        }
    
        private Map<String, CtClass> collectImplementedInterfaces(CtClass c) {
            Map<String, CtClass> result = [:]
            collect(result, c)
            return result
        }
    
        private void collect(Map<String, CtClass> result, CtClass c) {
            c.interfaces.each { result.put(it.name, it) }
    
            if (c.superclass != null) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy

        }
    
        private List<String> filterChangesToReport(CtClass c, Set<CtMethod> methods) {
            return methods.findAll { isFirstPublicClassInHierarchy(it, c) }*.longName.sort()
        }
    
        private boolean isFirstPublicClassInHierarchy(CtMethod method, CtClass c) {
            List<CtClass> classesContainingMethod = []
    
            CtClass current = c
            while (current != null) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

        interface IncubatingInterface {}
    
        interface InternalInterface {}
    
        interface StablePublicInterface {}
    
        CtClass oldBase
        CtClass newBase
        CtClass newSuper
        CtClass newIncubatingBase
        CtClass internalInterface
        CtClass incubatingInterface
        CtClass stablePublicInterface
    
        Map interfaces
    
        def setup() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 4K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy

        }
    
        protected abstract boolean changed(JApiCompatibility member)
    
        protected abstract Violation checkSuperClassChanges(JApiClass apiClass, CtClass oldClass, CtClass newClass)
    
        protected boolean isInternal(CtClass c) {
            if (c.name.startsWith("java.")) {
                return false
            } else if (c.name.contains('.internal.')) {
                return true
            } else {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/filters/BridgeForBytecodeUpgradeAdapterClassFilter.groovy

    import japicmp.filter.ClassFilter
    import javassist.CtClass
    import org.gradle.api.Generated
    
    /**
     * $$BridgeFor$$ classes generated for bytecode upgrade instrumentation
     */
    class BridgeForBytecodeUpgradeAdapterClassFilter implements ClassFilter {
    
        private static final BRIDGE_CLASS_PREFIX = "\$\$BridgeFor\$\$"
    
        @Override
        boolean matches(CtClass ctClass) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 11 09:56:18 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/filters/KotlinInternalFilter.groovy

    import japicmp.filter.FieldFilter
    import javassist.CtBehavior
    import javassist.CtClass
    import javassist.CtField
    
    /**
     * Matches Kotlin <code>internal</code> members.
     */
    class KotlinInternalFilter implements ClassFilter, FieldFilter, BehaviorFilter {
    
        @Override
        boolean matches(CtClass ctClass) {
            return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctClass)
        }
    
        @Override
        boolean matches(CtField ctField) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/filters/AnonymousClassesFilter.groovy

    import japicmp.filter.ClassFilter
    import javassist.CtClass
    
    import java.util.regex.Pattern
    
    /**
     * Matches JVM anonymous classes.
     */
    class AnonymousClassesFilter implements ClassFilter {
    
        private static final Pattern PATTERN = Pattern.compile('.*\\$[0-9]+$')
    
        @Override
        boolean matches(CtClass ctClass) {
            return ctClass.name.matches(PATTERN)
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRuleTest.groovy

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility.rules
    
    import japicmp.model.JApiCompatibilityChange
    import japicmp.util.Optional
    import javassist.CtClass
    import me.champeau.gradle.japicmp.report.Violation
    
    class MethodsRemovedInInternalSuperClassRuleTest extends AbstractContextAwareRuleSpecification {
        MethodsRemovedInInternalSuperClassRule rule
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.9K bytes
    - Viewed (0)
Back to top