public abstract class NodeVisitor extends Object implements INodeVisitor
Constructor and Description |
---|
NodeVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
endArray(ArrayValue array) |
void |
endArrayValue(ArrayValue array,
int index,
ValueNode<?> value) |
void |
endField(Field field) |
void |
endFieldValue(Field field,
ValueNode<?> value) |
void |
endRecord(Record record) |
void |
singleValue(SingleValue value) |
void |
startArray(ArrayValue array) |
void |
startArrayValue(ArrayValue array,
int index,
ValueNode<?> value) |
void |
startField(Field field) |
void |
startFieldValue(Field field,
ValueNode<?> value) |
void |
startRecord(Record record) |
static void |
visit(Node node,
INodeVisitor visitor) |
public void startRecord(Record record) throws Throwable
startRecord
in interface INodeVisitor
Throwable
public void endRecord(Record record) throws Throwable
endRecord
in interface INodeVisitor
Throwable
public void startField(Field field) throws Throwable
startField
in interface INodeVisitor
Throwable
public void endField(Field field) throws Throwable
endField
in interface INodeVisitor
Throwable
public void startFieldValue(Field field, ValueNode<?> value) throws Throwable
startFieldValue
in interface INodeVisitor
Throwable
public void endFieldValue(Field field, ValueNode<?> value) throws Throwable
endFieldValue
in interface INodeVisitor
Throwable
public void startArray(ArrayValue array) throws Throwable
startArray
in interface INodeVisitor
Throwable
public void endArray(ArrayValue array) throws Throwable
endArray
in interface INodeVisitor
Throwable
public void startArrayValue(ArrayValue array, int index, ValueNode<?> value) throws Throwable
startArrayValue
in interface INodeVisitor
Throwable
public void endArrayValue(ArrayValue array, int index, ValueNode<?> value) throws Throwable
endArrayValue
in interface INodeVisitor
Throwable
public void singleValue(SingleValue value) throws Throwable
singleValue
in interface INodeVisitor
Throwable
public static void visit(Node node, INodeVisitor visitor)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.