public abstract class ProgramNodeVisitor extends Object
TreeNode.traverse(ProgramNodeVisitor)
to visit all
nodes in the sub-tree under the node on which TreeNode.traverse(com.ur.urcap.api.domain.program.structure.ProgramNodeVisitor)
is called.Constructor and Description |
---|
ProgramNodeVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
visit(AssignmentNode programNode,
int index,
int depth)
This method is called whenever an Assignment node is encountered.
|
void |
visit(CircleMoveNode programNode,
int index,
int depth)
This method is called whenever a Circle Move node is encountered.
|
void |
visit(CommentNode programNode,
int index,
int depth)
This method is called whenever a Comment node is encountered.
|
void |
visit(DirectionNode programNode,
int index,
int depth)
This method is called whenever a Direction node is encountered.
|
void |
visit(ElseIfNode programNode,
int index,
int depth)
This method is called whenever an Else-If node is encountered.
|
void |
visit(ElseNode programNode,
int index,
int depth)
This method is called whenever an Else node is encountered.
|
void |
visit(FolderNode programNode,
int index,
int depth)
>
This method is called whenever a Folder node is encountered.
|
void |
visit(ForceNode programNode,
int index,
int depth)
This method is called whenever a Force node is encountered.
|
void |
visit(HaltNode programNode,
int index,
int depth)
This method is called whenever a Halt node is encountered.
|
void |
visit(IfNode programNode,
int index,
int depth)
This method is called whenever an If node is encountered.
|
void |
visit(LoopNode programNode,
int index,
int depth)
This method is called whenever a Loop node is encountered.
|
void |
visit(MoveNode programNode,
int index,
int depth)
This method is called whenever a Move node is encountered.
|
void |
visit(PalletNode programNode,
int index,
int depth)
This method is called whenever a Pallet node is encountered.
|
void |
visit(PopupNode programNode,
int index,
int depth)
This method is called whenever a Popup node is encountered.
|
void |
visit(ScrewdrivingNode programNode,
int index,
int depth)
This method is called whenever a Screwdriving node is encountered.
|
void |
visit(SeekNode programNode,
int index,
int depth)
This method is called whenever a Seek node is encountered.
|
void |
visit(SetNode programNode,
int index,
int depth)
This method is called whenever a Set node is encountered.
|
void |
visit(UntilNode programNode,
int index,
int depth)
This method is called whenever an Until node is encountered.
|
void |
visit(URCapProgramNode programNode,
int index,
int depth)
This method is called whenever a URCap program node is encountered.
|
void |
visit(WaitNode programNode,
int index,
int depth)
This method is called whenever a Wait node is encountered.
|
void |
visit(WaypointNode programNode,
int index,
int depth)
This method is called whenever a Waypoint node is encountered.
|
public void visit(AssignmentNode programNode, int index, int depth)
This method is called whenever an Assignment node is encountered.
Override it to execute custom code.programNode
- The Assignment program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(CircleMoveNode programNode, int index, int depth)
This method is called whenever a Circle Move node is encountered.
Override it to execute custom code.programNode
- The Circle Move program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(CommentNode programNode, int index, int depth)
This method is called whenever a Comment node is encountered.
Override it to execute custom code.programNode
- The Comment program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(ElseIfNode programNode, int index, int depth)
This method is called whenever an Else-If node is encountered.
Override it to execute custom code.programNode
- The Else-If program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(ElseNode programNode, int index, int depth)
This method is called whenever an Else node is encountered.
Override it to execute custom code.programNode
- The Else program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(FolderNode programNode, int index, int depth)
> This method is called whenever a Folder node is encountered.
Override it to execute custom code.programNode
- The Folder program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(ForceNode programNode, int index, int depth)
This method is called whenever a Force node is encountered.
Override it to execute custom code.programNode
- The Force program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0)..public void visit(HaltNode programNode, int index, int depth)
This method is called whenever a Halt node is encountered.
Override it to execute custom code.programNode
- The Halt program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(IfNode programNode, int index, int depth)
This method is called whenever an If node is encountered.
Override it to execute custom code.programNode
- The If program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(LoopNode programNode, int index, int depth)
This method is called whenever a Loop node is encountered.
Override it to execute custom code.programNode
- The Loop program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(MoveNode programNode, int index, int depth)
This method is called whenever a Move node is encountered.
Override it to execute custom code.programNode
- The Move program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(PalletNode programNode, int index, int depth)
This method is called whenever a Pallet node is encountered.
Override it to execute custom code.programNode
- The Pallet program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(PopupNode programNode, int index, int depth)
This method is called whenever a Popup node is encountered.
Override it to execute custom code.programNode
- The Popup program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(SeekNode programNode, int index, int depth)
This method is called whenever a Seek node is encountered.
Override it to execute custom code.programNode
- The Seek program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(SetNode programNode, int index, int depth)
This method is called whenever a Set node is encountered.
Override it to execute custom code.programNode
- The Set program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(UntilNode programNode, int index, int depth)
This method is called whenever an Until node is encountered.
Override it to execute custom code.programNode
- The UntilNode program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(WaitNode programNode, int index, int depth)
This method is called whenever a Wait node is encountered.
Override it to execute custom code.programNode
- The Wait program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(WaypointNode programNode, int index, int depth)
This method is called whenever a Waypoint node is encountered.
Override it to execute custom code.programNode
- The Waypoint program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(DirectionNode programNode, int index, int depth)
This method is called whenever a Direction node is encountered.
Override it to execute custom code.programNode
- The Direction program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(ScrewdrivingNode programNode, int index, int depth)
This method is called whenever a Screwdriving node is encountered.
Override it to execute custom code.programNode
- The ScrewdrivingNode program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).public void visit(URCapProgramNode programNode, int index, int depth)
This method is called whenever a URCap program node is encountered.
Override it to execute custom code.
See alsoURCapProgramNodeInterfaceVisitor.visitURCapAs(Object, int, int)
for visiting specific URCap
program nodes.programNode
- The URCap program node.index
- Zero-based index among the program node's siblings (at this depth).depth
- Relative depth to the node calling the TreeNode.traverse(ProgramNodeVisitor)
(calling node
is at depth 0).Copyright © 2020. All rights reserved.