public class ArgumentDescriptor extends ParameterDescriptor
Constructor and Description |
---|
ArgumentDescriptor(String name,
ParameterType<?> type,
Description info,
boolean required,
boolean password,
boolean unquote,
Class<? extends Completer> completerType,
Annotation annotation) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the argument name, that can be null.
|
Object |
parse(List<String> values) |
void |
printUsage(Appendable writer)
Prints the argument:
Single valued arguments use the "$arg" pattern.
Multi valued arguments use the "...
|
String |
toString() |
getAnnotation, getCompleterType, getDeclaredType, getDescription, getMultiplicity, getType, getUsage, isMultiValued, isPassword, isRequired, isSingleValued, isUnquote, parse
public ArgumentDescriptor(String name, ParameterType<?> type, Description info, boolean required, boolean password, boolean unquote, Class<? extends Completer> completerType, Annotation annotation) throws IllegalValueTypeException, IllegalParameterException
public String getName()
public Object parse(List<String> values) throws SyntaxException
parse
in class ParameterDescriptor
SyntaxException
public void printUsage(Appendable writer) throws IOException
printUsage
in class ParameterDescriptor
writer
- the writer to print toIOException
- any io exceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.