Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for MethodMetaData (0.11 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/MethodMetaData.java

     */
    public class MethodMetaData extends AbstractLanguageElement implements Serializable, TypeContainer {
        private final String name;
        private final ClassMetaData ownerClass;
        private final List<ParameterMetaData> parameters = new ArrayList<ParameterMetaData>();
        private TypeMetaData returnType;
    
        public MethodMetaData(String name, ClassMetaData ownerClass) {
            this.name = name;
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ClassMetaData.java

        }
    
        public MethodMetaData findDeclaredMethod(String signature) {
            for (MethodMetaData method : declaredMethods) {
                if (method.getOverrideSignature().equals(signature)) {
                    return method;
                }
            }
            return null;
        }
    
        public List<MethodMetaData> findDeclaredMethods(String name) {
            List<MethodMetaData> methods = new ArrayList<MethodMetaData>();
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 10.1K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

     */
    package gradlebuild.docs.dsl.source.model
    
    import spock.lang.Specification
    
    class MethodMetaDataTest extends Specification {
        final ClassMetaData owner = Mock()
        final MethodMetaData method = new MethodMetaData('method', owner)
    
        def formatsSignature() {
            method.returnType = new TypeMetaData('ReturnType')
            method.addParameter('param1', new TypeMetaData('ParamType'))
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/PropertyMetaData.java

            return builder.toString();
        }
    
        public MethodMetaData getGetter() {
            return getter;
        }
    
        public void setGetter(MethodMetaData getter) {
            this.getter = getter;
        }
    
        public MethodMetaData getSetter() {
            return setter;
        }
    
        public void setSetter(MethodMetaData setter) {
            this.setter = setter;
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 3K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaData.java

        }
    
        public LinkMetaData getMethod(String method) {
            MethodLinkMetaData methodMetaData = findMethod(method);
            String urlFragment = methodMetaData.getUrlFragment(className);
            String displayName = String.format("%s.%s", simpleName, methodMetaData.getDisplayName());
            return new LinkMetaData(methodMetaData.style, displayName, urlFragment);
        }
    
        private MethodLinkMetaData findMethod(String method) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 7.4K bytes
    - Viewed (0)
  6. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilderTest.groovy

        def buildsMethodsForClass() {
            ClassMetaData classMetaData = classMetaData()
            MethodMetaData methodA = method('a', classMetaData)
            MethodMetaData methodB = method('b', classMetaData)
            MethodMetaData methodBOverload = method('b', classMetaData)
            MethodDoc methodAOverridden = methodDoc('a')
            MethodDoc methodC = methodDoc('c')
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 8.4K bytes
    - Viewed (0)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/PropertyMetaDataTest.groovy

            _ * overriddenClass.findDeclaredProperty('prop') >> overriddenProperty
        }
    
        def usesSetterToLocateOverriddenPropertyWhenGetterDoesNotOverrideAnything() {
            MethodMetaData getter = Mock()
            MethodMetaData setter = Mock()
            MethodMetaData overriddenSetter = Mock()
            ClassMetaData overriddenClass = Mock()
            PropertyMetaData overriddenProperty = Mock()
            propertyMetaData.getter = getter
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocExtensionsBuilder.java

                MethodMetaData methodMetaData = new MethodMetaData(id, extensionDoc.getTargetClass().getClassMetaData());
                methodMetaData.addParameter("configClosure", new TypeMetaData(Closure.class.getName()));
                MethodDoc methodDoc = new MethodDoc(methodMetaData, Collections.singletonList(para));
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocLinkConverter.java

            }
    
            MethodMetaData method = findMethod(methodSignature, targetClass);
            if (method == null) {
                return null;
            }
    
            return linkRenderer.link(method, listener);
        }
    
        private MethodMetaData findMethod(String name, ClassMetaData targetClass) {
            List<MethodMetaData> candidates = new ArrayList<MethodMetaData>();
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  10. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/JavadocLinkConverterTest.groovy

            then:
            format(link) == '<literal>value</literal>'
            _ * classMetaData.constants >> [someField: 'value']
        }
    
        private MethodMetaData method(Map<String, ?> args = [:], String name) {
            def MethodMetaData method = Mock()
            _ * method.name >> name
            _ * method.overrideSignature >> args.signature
            return method
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 8.7K bytes
    - Viewed (0)
Back to top