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 ModifierSpec
checkValue, opMode, pathElement, TRAVERSAL_BUILDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyElement(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 FunctionEvaluatorbuildFunctionEvaluator(String rhs, Map<String, Function> functionsMap) private static FunctionArg[]constructArgs(List<String> argsList) private static FunctionArgconstructSingleArg(String arg, boolean forFunction) getFirstAvailable(List<FunctionEvaluator> functionEvaluatorList, Optional<Object> inputOptional, WalkedPath walkedPath, Map<String, Object> context) Methods inherited from class 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:ModifierSpecTemplatr specific override that is used in BaseSpec#apply(...) The name is changed for easy identification during debugging- Specified by:
applyElementin 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
-