use of org.gradle.model.Path in project gradle by gradle.
the class DefaultMethodRuleDefinition method reference.
private ModelReference<?> reference(List<Annotation> annotations, int i) {
Path pathAnnotation = (Path) findFirst(annotations, new Spec<Annotation>() {
public boolean isSatisfiedBy(Annotation element) {
return element.annotationType().equals(Path.class);
}
});
ModelPath path = pathAnnotation == null ? null : ModelPath.path(pathAnnotation.value());
ModelType<?> cast = method.getGenericParameterTypes().get(i);
return ModelReference.of(path, cast, PARAMETER_DESC[i]);
}
Aggregations