public class ParameterValues extends Object
Constructor and Description |
---|
ParameterValues(Class[] aTypes)
Constructs the configuration.
|
ParameterValues(String[] aNames,
Class[] aTypes)
Constructs the configuration.
|
Modifier and Type | Method and Description |
---|---|
List<RequiredInterface> |
getRequiredInterfaces()
Gets the required interfaces to provide values that are not provided in
another way.
|
Class[] |
getTypes()
The types of the parameter values.
|
ParameterValues |
setOptional(int aArg)
Sets argument i to be optional, meaning that null is allowed to be passed
in.
|
ParameterValues |
setValue(int aArg,
Object aValue)
Sets the argument i to a fixed value.
|
Object[] |
values(Scope aScope)
Returns the values to use in the given scope.
|
public ParameterValues(Class[] aTypes)
#select(Class...)
or #greedy()
must be called.aClass
- Class to construct.public Class[] getTypes()
public ParameterValues setOptional(int aArg)
aArg
- Argument to set.public ParameterValues setValue(int aArg, Object aValue)
aArg
- Argument to set.aValue
- Value.public List<RequiredInterface> getRequiredInterfaces()
Copyright © 2022. All rights reserved.