public interface ParameterInfo
Pattern
defines acceptable value of parameter value during matching. For example type, filter on attribute values.Modifier and Type | Field and Description |
---|---|
static int |
UNLIMITED_OCCURRENCES |
Modifier and Type | Method and Description |
---|---|
ImmutableMap |
addValueAs(ImmutableMap parameters,
java.lang.Object value)
Matches `value` into `parameters` under the name/structure defined by this ParameterInfo.
|
Quantifier |
getMatchingStrategy() |
java.lang.String |
getName() |
java.lang.Class<?> |
getParameterValueType() |
<T> void |
getValueAs(Factory factory,
ResultHolder<T> result,
ImmutableMap parameters)
Takes the value of parameter identified by this
ParameterInfo from the `parameters`
and adds that 0, 1 or more values into result (depending on type of result) |
boolean |
isMandatory(ImmutableMap parameters) |
boolean |
isMultiple() |
boolean |
isRepeatable() |
boolean |
isTryNextMatch(ImmutableMap parameters) |
static final int UNLIMITED_OCCURRENCES
java.lang.String getName()
ParameterInfo
ImmutableMap addValueAs(ImmutableMap parameters, java.lang.Object value)
ParameterInfo
2) creates new copy of ImmutableMap
which contains the new `value` and returns that copyparameters
- the existing parametersvalue
- the new, to be stored value<T> void getValueAs(Factory factory, ResultHolder<T> result, ImmutableMap parameters)
ParameterInfo
from the `parameters`
and adds that 0, 1 or more values into result (depending on type of result)factory
- the factory used to create new entities if conversion of value is needed before it can be added into `result`result
- the receiver of the result value. It defined required type of returned value and multiplicity of returned valueparameters
- here are stored all the parameter valuesboolean isMultiple()
java.lang.Class<?> getParameterValueType()
Quantifier getMatchingStrategy()
RootNode
sboolean isRepeatable()
boolean isMandatory(ImmutableMap parameters)
parameters
- matching parametersboolean isTryNextMatch(ImmutableMap parameters)
parameters
- matching parametersCopyright © 2007–2021 Inria. All rights reserved.