Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for addMethods (0.58 sec)

  1. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeClassSourceGenerator.java

                .collect(Collectors.toList());
    
            return builder -> builder
                .addAnnotation(GENERATED_ANNOTATION.asClassName())
                .addModifiers(Modifier.PUBLIC)
                .addMethods(methods);
        }
    
        private static MethodSpec mapToMethodSpec(CallInterceptionRequest request, Consumer<? super CallInterceptionRequest> onProcessedRequest, Consumer<? super HasFailures.FailureInfo> onFailure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:11:23 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-asm/src/main/java/org/gradle/model/internal/asm/ClassVisitorScope.java

            addMethod(ACC_PUBLIC, name, descriptor, signature, body);
        }
    
        /**
         * Adds a method to the generated type.
         */
        protected void addMethod(int access, String name, String descriptor, BytecodeFragment body) {
            addMethod(access, name, descriptor, null, body);
        }
    
        /**
         * Adds a method to the generated type.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:25 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java

                .addParameter(boolean.class, "isStatic")
                .addCode(generateMatchesSignatureCodeFromInterceptorSignatureTree(signatureTree))
                .build();
    
            generatedClass.addMethod(interceptMethod);
            generatedClass.addMethod(matchesSignature);
    
            if (hasGroovyPropertyRequests(requests)) {
                generatedClass.addSuperinterface(PROPERTY_AWARE_CALL_INTERCEPTOR_CLASS);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/go/types/named_test.go

    	}
    }
    
    // TestMethodOrdering is a simple test verifying that the indices of methods of
    // a named type remain the same as long as the same source and AddMethod calls
    // are presented to the type checker in the same order (go.dev/issue/61298).
    func TestMethodOrdering(t *testing.T) {
    	const src = `
    package p
    
    type T struct{}
    
    func (T) a() {}
    func (T) c() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 16:29:58 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/RelevantMethods.java

                            continue;
                        }
                        addMethod(method);
                    }
                }
                return new RelevantMethods(decorators, factories, configurers);
            }
    
            private void addMethod(Method method) {
                if (method.getName().equals("configure")) {
                    if (!method.getReturnType().equals(Void.TYPE)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/named_test.go

    	}
    }
    
    // TestMethodOrdering is a simple test verifying that the indices of methods of
    // a named type remain the same as long as the same source and AddMethod calls
    // are presented to the type checker in the same order (go.dev/issue/61298).
    func TestMethodOrdering(t *testing.T) {
    	const src = `
    package p
    
    type T struct{}
    
    func (T) a() {}
    func (T) c() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/jvmbytecode/InterceptJvmCallsGenerator.java

                    .addMethod(BINARY_CLASS_NAME_OF)
                    .addMethod(LOAD_BINARY_CLASS_NAME)
                    .addField(INTERCEPTORS_REQUEST_TYPE)
                    .addField(METHOD_VISITOR_FIELD)
                    .addField(METADATA_FIELD)
                    .addField(CONTEXT_FIELD)
                    // actual content:
                    .addMethod(visitMethodInsnBuilder.build())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:50:01 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/RuleVisitor.java

                statements.add(new ExpressionStatement(new BinaryExpression(new FieldExpression(ruleFactoryField), ASSIGN, new VariableExpression("ruleFactory"))));
                node.addMethod(new MethodNode("makeRule",
                        Modifier.PUBLIC,
                        ClassHelper.VOID_TYPE,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top