1
2
3
4
5
6
7
8
9
10
11
12
13
14 package com.lexicalscope.jewel.cli;
15
16 import ch.lambdaj.function.convert.Converter;
17
18 import com.lexicalscope.fluentreflection.FluentClass;
19 import com.lexicalscope.fluentreflection.FluentMethod;
20 import com.lexicalscope.jewel.cli.specification.UnparsedOptionSpecification;
21
22 class ConvertUnparsedGetterMethodToUnparsedOptionSpecification extends AbstractConvertMethodToOptionSpecification
23 implements
24 Converter<FluentMethod, UnparsedOptionSpecification> {
25
26 public ConvertUnparsedGetterMethodToUnparsedOptionSpecification(final FluentClass<?> klass) {
27 super(klass);
28 }
29
30 @Override public UnparsedOptionSpecification convert(final FluentMethod method) {
31 return createUnparsedOptionSpecificationFrom(method);
32 }
33 }