Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 58 for paramTypes (0.47 sec)

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

            val paramTypes: Array<Type> = getArgumentTypes(signature)
    
            // Treat all parameters equally, regardless of whether they are implicit captured parameters or the lambda signature ones.
            // If any of them is of an unsupported type, a build that runs from the serialized state won't be able to provide an instance anyway.
            paramTypes.forEach { paramType ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        Class<?>[] paramTypes = constructor.getParameterTypes();
        Object[] params = new Object[paramTypes.length];
        for (int i = 0; i < paramTypes.length; i++) {
          Class<?> paramType = paramTypes[i];
          if (paramType.equals(String.class)) {
            params[i] = cause.toString();
          } else if (paramType.equals(Throwable.class)) {
            params[i] = cause;
          } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

         * @param paramTypes the classes of method parameters
         */
        private static Method getPublicMethod(Class<?> clazz, String name, Class<?>... paramTypes) {
            // if this class is public, then try to get it
            if ((clazz.getModifiers() & Modifier.PUBLIC) != 0) {
                try {
                    return clazz.getMethod(name, paramTypes);
                } catch (NoSuchMethodException e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Oct 17 17:55:08 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  4. fastapi/params.py

    from ._compat import PYDANTIC_V2, PYDANTIC_VERSION, Undefined
    
    _Unset: Any = Undefined
    
    
    class ParamTypes(Enum):
        query = "query"
        header = "header"
        path = "path"
        cookie = "cookie"
    
    
    class Param(FieldInfo):
        in_: ParamTypes
    
        def __init__(
            self,
            default: Any = Undefined,
            *,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java

                Class<?>[] parameterTypes = constructor.getParameterTypes();
                List<Type> paramTypes = new ArrayList<>(parameterTypes.length + (addNameParameter ? 1 : 0));
                for (Class<?> paramType : parameterTypes) {
                    paramTypes.add(getType(paramType));
                }
                return paramTypes;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 100.6K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

        }
    
        def "the @since annotation on implicit enum method '#implicitMethod#paramTypes' is not required"() {
            given:
            def rule = withContext(new SinceAnnotationMissingRule([:]))
            def jApiMethod = Stub(JApiMethod)
            jApiMethod.name >> implicitMethod
            jApiMethod.jApiClass >> jApiClassifier
            jApiMethod.parameters >> paramTypes.collect { paramStub(it) }
    
            when:
            sourceFile.text = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 20:12:19 UTC 2023
    - 16K bytes
    - Viewed (0)
  7. fastapi/dependencies/utils.py

        if field_info_in == params.ParamTypes.path:
            dependant.path_params.append(field)
        elif field_info_in == params.ParamTypes.query:
            dependant.query_params.append(field)
        elif field_info_in == params.ParamTypes.header:
            dependant.header_params.append(field)
        else:
            assert (
                field_info_in == params.ParamTypes.cookie
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  8. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocRendererTest.groovy

            _ * methodDoc.incubating >> (args.incubating ?: false)
            _ * metaData.returnType >> new TypeMetaData(args.returnType ?: 'ReturnType')
            def paramTypes = args.paramTypes ?: []
            _ * metaData.parameters >> paramTypes.collect {
                def param = new ParameterMetaData("p");
                param.type = new TypeMetaData(it)
                return param
            }
            return methodDoc
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 40.8K bytes
    - Viewed (0)
  9. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

            method.addParameter('param1', new TypeMetaData('ParamType'))
            method.addParameter('param2', new TypeMetaData('ParamType2'))
    
            expect:
            method.signature == 'ReturnType method(ParamType param1, ParamType2 param2)'
            method.overrideSignature == 'method(ParamType, ParamType2)'
        }
    
        def formatsOverrideSignatureUsingRawParameterTypes() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

        Type returnType = method.getGenericReturnType();
        Type paramType = getOnlyParameterType();
        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
            .isTrue();
        assertWithMessage("%s is supertype of %s", returnType, paramType)
            .that(TypeToken.of(returnType).isSupertypeOf(paramType))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top