Interface TransformAction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TransformAction
Represents an action to be performed that transforms a node in the configuration tree
-
Method Summary
Modifier and Type Method Description @Nullable Object[]
visitPath(@NonNull ConfigurationTransformation.NodePath inputPath, @NonNull ConfigurationNode valueAtPath)
Called at a certain path, with the node at that path.
-
Method Details
-
visitPath
@Nullable Object[] visitPath(@NonNull ConfigurationTransformation.NodePath inputPath, @NonNull ConfigurationNode valueAtPath)Called at a certain path, with the node at that path.The state of the
inputPath
is only guaranteed to be accurate during a run of the transform function. UseNodePath.getArray()
if its' state needs to be stored.- Parameters:
inputPath
- The path of the given nodevalueAtPath
- The node at the input path. May be modified- Returns:
- A modified path, or null if the path is to stay the same
-