public class ClassOptions extends Object
Constructor and Description |
---|
ClassOptions() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptionEntry(Map<org.apache.commons.cli.Option,ClassOptionData> optionEntries,
Parameter p,
String defaultName,
Member type,
Class<?>[] types) |
void |
autoMap(Object target,
ClassOptionsData cod,
org.apache.commons.cli.CommandLine cl,
IClassParser parser) |
void |
autoMap(Object target,
ClassOptionsData cod,
Iterable<org.apache.commons.cli.Option> options,
IClassParser parser) |
protected void |
autoMapField(Object target,
Field field,
String[] values,
IClassParser parser) |
protected void |
autoMapMethod(Object target,
Method method,
String[] values,
IClassParser parser) |
protected boolean |
endsWithArray(Class<?>[] types) |
ClassOptionsData |
get(Class<?> c) |
protected String |
getAV(String value)
"getAnnotationValue", as annotation values can't store null.
|
protected String |
getOptionName(Method method) |
org.apache.commons.cli.Options |
getOptions(ClassOptionsData cod) |
public ClassOptionsData get(Class<?> c)
public org.apache.commons.cli.Options getOptions(ClassOptionsData cod)
protected void addOptionEntry(Map<org.apache.commons.cli.Option,ClassOptionData> optionEntries, Parameter p, String defaultName, Member type, Class<?>[] types)
protected boolean endsWithArray(Class<?>[] types)
protected String getAV(String value)
public void autoMap(Object target, ClassOptionsData cod, org.apache.commons.cli.CommandLine cl, IClassParser parser) throws Exception
Exception
public void autoMap(Object target, ClassOptionsData cod, Iterable<org.apache.commons.cli.Option> options, IClassParser parser) throws Exception
Exception
protected void autoMapField(Object target, Field field, String[] values, IClassParser parser) throws Exception
Exception
Copyright © 2007–2017 Mark A. Ziesemer. All rights reserved.