1 package com.lexicalscope.jewel.cli;
2
3 import com.lexicalscope.fluentreflection.FluentClass;
4 import com.lexicalscope.fluentreflection.FluentMethod;
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 final class UnparsedAnnotationAdapter extends AbstractOptionAdapter {
23 private final Unparsed option;
24
25 UnparsedAnnotationAdapter(
26 final FluentClass<?> klass,
27 final FluentMethod method,
28 final Unparsed unparsed) {
29 super(klass, method);
30 this.option = unparsed;
31 }
32
33 @Override public String description() {
34 return option.description().trim();
35 }
36
37 @Override public String pattern() {
38 return option.pattern();
39 }
40
41 @Override public boolean defaultToNull() {
42 return option.defaultToNull();
43 }
44
45 @Override public String[] defaultValue() {
46 return option.defaultValue();
47 }
48
49 public String name() {
50 return option.name();
51 }
52
53 @Override public boolean isHidden() {
54 return option.hidden();
55 }
56
57 @Override public int minimum() {
58 return option.minimum();
59 }
60
61 @Override public int exactly() {
62 return option.exactly();
63 }
64
65 @Override public int maximum() {
66 return option.maximum();
67 }
68 }