Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for allMethods (0.31 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/cmd/compile/internal/types/type.go

    	return t.methods.Slice()
    }
    
    // AllMethods returns a pointer to all the methods (including embedding) for type t.
    // For an interface type, this is the set of methods that are typically iterated
    // over. For non-interface types, AllMethods() only returns a valid result after
    // CalcMethods() has been called at least once.
    func (t *Type) AllMethods() []*Field {
    	if t.kind == TINTER {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/compile/internal/types/size.go

    		// by types2 already, so allow non-interface here.
    		if !m.Type.IsInterface() {
    			continue
    		}
    
    		// Embedded interface: duplicate all methods
    		// and add to t's method set.
    		for _, t1 := range m.Type.AllMethods() {
    			f := NewField(m.Pos, t1.Sym, t1.Type)
    			addMethod(f, false)
    
    			// Clear position after typechecking, for consistency with types2.
    			f.Pos = src.NoXPos
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/typecheck/typecheck.go

    	// Compute the method set for recv.
    	var ms []*types.Field
    	if recv.IsInterface() {
    		ms = recv.AllMethods()
    	} else {
    		mt := types.ReceiverBaseType(recv)
    		if mt == nil {
    			base.FatalfAt(pos, "type %v has no receiver base type", recv)
    		}
    		CalcMethods(mt)
    		ms = mt.AllMethods()
    	}
    
    	m := Lookdot1(nil, sym, recv, ms, 0)
    	if m == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top