diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-10-03 09:11:55 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-10-03 09:11:55 -0400 |
| commit | b0516949d7577b809c75d7267df77bff2cdb078b (patch) | |
| tree | 7bc7786063c6db778a33335b5089cc2fadb2d93d /BJC-Utils2/src/main/java/bjc/utils/data/TopDownTransformResult.java | |
| parent | f7a10e0e57d6f0ea83643c3d5763ff405af73337 (diff) | |
Minor reorganization
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/TopDownTransformResult.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/data/TopDownTransformResult.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/TopDownTransformResult.java b/BJC-Utils2/src/main/java/bjc/utils/data/TopDownTransformResult.java new file mode 100644 index 0000000..a2448d2 --- /dev/null +++ b/BJC-Utils2/src/main/java/bjc/utils/data/TopDownTransformResult.java @@ -0,0 +1,30 @@ +package bjc.utils.data; + +/** + * Represents the results for doing a top-down transform of a tree + * + * @author ben + * + */ +public enum TopDownTransformResult { + /** + * Do not do anything to this node, and ignore it's children + */ + SKIP, + /** + * Transform this node, and don't touch its children + */ + TRANSFORM, + /** + * Ignore this node, and traverse its children + */ + PASSTHROUGH, + /** + * Traverse this nodes children, then transform it + */ + PUSHDOWN, + /** + * Transform this node, then traverse its children + */ + PULLUP; +} |
