Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 973 for REFLECT (0.17 sec)

  1. guava-testlib/src/com/google/common/testing/DummyProxy.java

    import com.google.common.collect.Sets;
    import com.google.common.reflect.AbstractInvocationHandler;
    import com.google.common.reflect.Invokable;
    import com.google.common.reflect.Parameter;
    import com.google.common.reflect.TypeToken;
    import java.io.Serializable;
    import java.lang.reflect.Method;
    import java.lang.reflect.Proxy;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 08 17:31:55 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. pkg/test/framework/scope.go

    func (s *scope) get(ref any) error {
    	s.mu.Lock()
    	defer s.mu.Unlock()
    
    	refVal := reflect.ValueOf(ref)
    	if refVal.Kind() != reflect.Ptr {
    		return fmt.Errorf("ref must be a pointer instead got: %T", ref)
    	}
    	// work with the underlying value rather than the pointer
    	refVal = refVal.Elem()
    
    	targetT := refVal.Type()
    	if refVal.Kind() == reflect.Slice {
    		// for slices look at the element type
    		targetT = targetT.Elem()
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 21:55:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/internal/reflectlite/export_test.go

    // It panics if v's Kind is not Struct or i is out of range.
    func Field(v Value, i int) Value {
    	if v.kind() != Struct {
    		panic(&ValueError{"reflect.Value.Field", v.kind()})
    	}
    	tt := (*structType)(unsafe.Pointer(v.typ()))
    	if uint(i) >= uint(len(tt.Fields)) {
    		panic("reflect: Field index out of range")
    	}
    	field := &tt.Fields[i]
    	typ := field.Typ
    
    	// Inherit permission bits from v, but clear flagEmbedRO.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/common/DependencyCollectorFunctionExtractorAndRuntimeResolver.kt

    import java.util.Locale
    import kotlin.reflect.KClass
    import kotlin.reflect.KFunction
    import kotlin.reflect.KMutableProperty
    import kotlin.reflect.KProperty
    import kotlin.reflect.full.isSubclassOf
    import kotlin.reflect.full.memberFunctions
    import kotlin.reflect.full.memberProperties
    import kotlin.reflect.typeOf
    
    
    internal
    class DependencyCollectorFunctionExtractorAndRuntimeResolver(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:07 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/schemaBuildingUtils.kt

    import org.gradle.internal.declarativedsl.analysis.ref
    import org.gradle.internal.declarativedsl.language.DataTypeInternal
    import kotlin.reflect.KCallable
    import kotlin.reflect.KClass
    import kotlin.reflect.KClassifier
    import kotlin.reflect.KProperty
    import kotlin.reflect.KType
    
    
    fun KClassifier.toDataTypeRef(): DataTypeRef =
        when (this) {
            Unit::class -> DataTypeInternal.DefaultUnitType.ref
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/unique/clone_test.go

    	return cloneSeq{stringOffsets: stringOffsets}
    }
    
    func testCloneSeq[T any](t *testing.T, want cloneSeq) {
    	typName := reflect.TypeFor[T]().Name()
    	typ := abi.TypeOf(*new(T))
    	t.Run(typName, func(t *testing.T) {
    		got := makeCloneSeq(typ)
    		if !reflect.DeepEqual(got, want) {
    			t.Errorf("unexpected cloneSeq for type %s: got %#v, want %#v", typName, got, want)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/embedded/EmbeddedKotlinPluginIntegTest.kt

            )
    
            val result = build("assemble")
    
            result.assertOutputContains(":compileKotlin NO-SOURCE")
        }
    
        @Test
        @ToBeFixedForConfigurationCache
        fun `adds stdlib and reflect as compile only dependencies`() {
    
            withBuildScript(
                """
    
                plugins {
                    `embedded-kotlin`
                }
    
                configurations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/encoding/gob/decoder.go

    // does not modify e.
    func (dec *Decoder) Decode(e any) error {
    	if e == nil {
    		return dec.DecodeValue(reflect.Value{})
    	}
    	value := reflect.ValueOf(e)
    	// If e represents a value as opposed to a pointer, the answer won't
    	// get back to the caller. Make sure it's a pointer.
    	if value.Type().Kind() != reflect.Pointer {
    		dec.err = errors.New("gob: attempt to decode into a non-pointer")
    		return dec.err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/JavaReflectionUtil.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.reflect;
    
    import com.google.common.reflect.TypeToken;
    import org.gradle.internal.UncheckedException;
    
    import java.lang.reflect.Constructor;
    import java.lang.reflect.ParameterizedType;
    
    public class JavaReflectionUtil {
    
        public static Class<?> getWrapperTypeForPrimitiveType(Class<?> type) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/support/EmbeddedKotlinProviderTest.kt

                        classpath("org.jetbrains.kotlin:kotlin-stdlib:1.0")
                        classpath("org.jetbrains.kotlin:kotlin-reflect:1.0")
                    }
                }
                """
            )
    
            val result = build("buildEnvironment")
    
            listOf("stdlib", "reflect").forEach { module ->
                assertThat(result.output, containsString("org.jetbrains.kotlin:kotlin-$module:1.0 -> $embeddedKotlinVersion"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top