Class ModifierLeafSpec
java.lang.Object
com.bazaarvoice.jolt.modifier.spec.ModifierSpec
com.bazaarvoice.jolt.modifier.spec.ModifierLeafSpec
- All Implemented Interfaces:
BaseSpec
-
Field Summary
FieldsFields inherited from class com.bazaarvoice.jolt.modifier.spec.ModifierSpec
checkValue, opMode, pathElement, TRAVERSAL_BUILDER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyElement
(String inputKey, Optional<Object> inputOptional, MatchedElement thisLevel, WalkedPath walkedPath, Map<String, Object> context) Templatr specific override that is used in BaseSpec#apply(...) The name is changed for easy identification during debuggingprivate static FunctionEvaluator
buildFunctionEvaluator
(String rhs, Map<String, Function> functionsMap) private static FunctionArg[]
constructArgs
(List<String> argsList) private static FunctionArg
constructSingleArg
(String arg, boolean forFunction) getFirstAvailable
(List<FunctionEvaluator> functionEvaluatorList, Optional<Object> inputOptional, WalkedPath walkedPath, Map<String, Object> context) Methods inherited from class com.bazaarvoice.jolt.modifier.spec.ModifierSpec
apply, getPathElement, setData
-
Field Details
-
functionEvaluatorList
-
-
Constructor Details
-
ModifierLeafSpec
-
-
Method Details
-
applyElement
public void applyElement(String inputKey, Optional<Object> inputOptional, MatchedElement thisLevel, WalkedPath walkedPath, Map<String, Object> context) Description copied from class:ModifierSpec
Templatr specific override that is used in BaseSpec#apply(...) The name is changed for easy identification during debugging- Specified by:
applyElement
in classModifierSpec
-
buildFunctionEvaluator
private static FunctionEvaluator buildFunctionEvaluator(String rhs, Map<String, Function> functionsMap) -
getFirstAvailable
private static Optional<Object> getFirstAvailable(List<FunctionEvaluator> functionEvaluatorList, Optional<Object> inputOptional, WalkedPath walkedPath, Map<String, Object> context) -
constructArgs
-
constructSingleArg
-