public static class ArgumentParser.Builder extends Object
| Constructor and Description |
|---|
Builder(Injector injector)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Type type)
Add a parameter to parse.
|
void |
addParameter(Type type,
List<? extends Annotation> annotations)
Add a parameter to parse.
|
ArgumentParser |
build()
Create a new argument parser.
|
public Builder(Injector injector)
injector - The injectorpublic void addParameter(Type type) throws IllegalParameterException
type - The type of the parameterIllegalParameterException - If there is a problem with the parameterpublic void addParameter(Type type, List<? extends Annotation> annotations) throws IllegalParameterException
type - The type of the parameterannotations - A list of annotations on the parameterIllegalParameterException - If there is a problem with the parameterpublic ArgumentParser build()
Copyright © 2015. All Rights Reserved.