Package org.gradle.model.internal.core.rule.describe

Examples of org.gradle.model.internal.core.rule.describe.MethodModelRuleDescriptor


    public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
        return method.getAnnotation(annotationType);
    }

    public ModelRuleDescriptor getDescriptor() {
        return new MethodModelRuleDescriptor(method);
    }
View Full Code Here


    private static RuntimeException invalid(Class<?> source, String reason) {
        return new InvalidModelRuleDeclarationException("Type " + source.getName() + " is not a valid model rule source: " + reason);
    }

    private static RuntimeException invalid(Method method, String reason) {
        return invalid("model rule method", new MethodModelRuleDescriptor(method), reason);
    }
View Full Code Here

TOP

Related Classes of org.gradle.model.internal.core.rule.describe.MethodModelRuleDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.