Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for appendMethod (0.26 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java

                TreeFormatter formatter = new TreeFormatter();
                formatter.node("Cannot have abstract method ");
                formatter.appendMethod(method);
                formatter.append(".");
                throw new IllegalArgumentException(formatter.toString());
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 63K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/TreeFormatterTest.groovy

        }
    
        def "can append method name"() {
            when:
            formatter.node("thing ")
            formatter.appendMethod(String.getMethod("length"))
    
            then:
            formatter.toString() == toPlatformLineSeparators("thing String.length()")
        }
    
        def "can append annoation name"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/TreeFormatter.java

            append("@" + type.getSimpleName());
            return this;
        }
    
        /**
         * Appends a method name to the current node.
         */
        public TreeFormatter appendMethod(Method method) {
            // Implementation is currently dumb, can be made smarter
            append(method.getDeclaringClass().getSimpleName());
            append(".");
            append(method.getName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top