Interface INodeVisitor
- All Known Implementing Classes:
BasicFieldTransformer.SingleValueOperation,BasicFieldTransformer.StringOperation,NodeVisitor
public interface INodeVisitor
Receives callbacks while
NodeVisitor.visit(Node, INodeVisitor) walks a tree of records, fields, arrays and values depth-first.-
Method Summary
Modifier and TypeMethodDescriptionvoidendArray(ArrayValue array) Called after all of the array's elements have been visited.voidendArrayValue(ArrayValue array, int index, ValueNode<?> value) Called after the element at the given 0-based index has been visited.voidCalled last for a field, afterendFieldValue(Field, ValueNode).voidendFieldValue(Field field, ValueNode<?> value) Called after the field's value node has been visited.voidCalled after all of the record's fields have been visited.voidsingleValue(SingleValue value) Called for each single (leaf) value; it has no matching end callback.voidstartArray(ArrayValue array) Called before the array's elements are visited.voidstartArrayValue(ArrayValue array, int index, ValueNode<?> value) Called before the element at the given 0-based index is visited.voidstartField(Field field) Called when a field is reached, beforestartFieldValue(Field, ValueNode).voidstartFieldValue(Field field, ValueNode<?> value) Called before the field's value node is visited.voidstartRecord(Record record) Called before the record's fields are visited.
-
Method Details
-
startRecord
Called before the record's fields are visited.- Throws:
Throwable
-
endRecord
Called after all of the record's fields have been visited.- Throws:
Throwable
-
startField
Called when a field is reached, beforestartFieldValue(Field, ValueNode).- Throws:
Throwable
-
endField
Called last for a field, afterendFieldValue(Field, ValueNode).- Throws:
Throwable
-
startFieldValue
Called before the field's value node is visited.- Throws:
Throwable
-
endFieldValue
Called after the field's value node has been visited.- Throws:
Throwable
-
startArray
Called before the array's elements are visited.- Throws:
Throwable
-
endArray
Called after all of the array's elements have been visited.- Throws:
Throwable
-
startArrayValue
Called before the element at the given 0-based index is visited.- Throws:
Throwable
-
endArrayValue
Called after the element at the given 0-based index has been visited.- Throws:
Throwable
-
singleValue
Called for each single (leaf) value; it has no matching end callback.- Throws:
Throwable
-