Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for allMethods (0.35 sec)

  1. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/MethodCache.kt

        allMethods().firstAccessibleMatchingMethodOrNull(predicate)
    
    
    internal
    fun Iterable<Method>.firstAccessibleMatchingMethodOrNull(predicate: Method.() -> Boolean): Method? =
        find(predicate)?.apply { isAccessible = true }
    
    
    internal
    fun Class<*>.firstMatchingMethodOrNull(predicate: Method.() -> Boolean): Method? =
        allMethods().find(predicate)
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    	// position.
    
    	var seen objset
    	var allMethods []*Func
    	mpos := make(map[*Func]syntax.Pos) // method specification or method embedding position, for good error messages
    	addMethod := func(pos syntax.Pos, m *Func, explicit bool) {
    		switch other := seen.insert(m); {
    		case other == nil:
    			allMethods = append(allMethods, m)
    			mpos[m] = pos
    		case explicit:
    			if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/go/types/typeset.go

    	// position.
    
    	var seen objset
    	var allMethods []*Func
    	mpos := make(map[*Func]token.Pos) // method specification or method embedding position, for good error messages
    	addMethod := func(pos token.Pos, m *Func, explicit bool) {
    		switch other := seen.insert(m); {
    		case other == nil:
    			allMethods = append(allMethods, m)
    			mpos[m] = pos
    		case explicit:
    			if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/StructSchemaExtractionStrategySupport.java

            Set<Method> nonPropertyMethods = Sets.newLinkedHashSet(Iterables.transform(candidateMethods.allMethods().keySet(), new Function<Wrapper<Method>, Method>() {
                @Override
                public Method apply(Wrapper<Method> method) {
                    return method.get();
                }
            }));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaSerializationEncodingLookup.kt

            return encodings.computeIfAbsent(type) { t -> calculateEncoding(t) }.encoding
        }
    
        private
        fun calculateEncoding(type: Class<*>): EncodingDetails {
            val candidates = type.allMethods()
            val encoding = writeReplaceEncodingFor(candidates)
                ?: readResolveEncodingFor(candidates)
                ?: writeObjectEncodingFor(candidates)
                ?: readObjectEncodingFor(candidates)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/go/doc/reader.go

    			Methods: sortedFuncs(t.methods, allMethods),
    		}
    		i++
    	}
    
    	slices.SortFunc(list, func(a, b *Type) int {
    		return strings.Compare(a.Name, b.Name)
    	})
    
    	return list
    }
    
    func removeStar(s string) string {
    	if len(s) > 0 && s[0] == '*' {
    		return s[1:]
    	}
    	return s
    }
    
    func sortedFuncs(m methodSet, allMethods bool) []*Func {
    	list := make([]*Func, len(m))
    	i := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt

         */
        private
        fun readObjectMethodHierarchyForDecoding(type: Class<*>): List<Method> =
            readObjectHierarchy.computeIfAbsent(type) {
                readObjectMethodHierarchyFrom(it.allMethods())
            }
    }
    
    
    internal
    fun Method.isReadResolve() =
        !isStatic(modifiers)
            && parameterCount == 0
            && returnType == java.lang.Object::class.java
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top