1 11 package org.eclipse.text.edits; 12 13 52 public class TextEditVisitor { 53 54 63 public void preVisit(TextEdit edit) { 64 } 66 67 76 public void postVisit(TextEdit edit) { 77 } 79 80 90 public boolean visitNode(TextEdit edit) { 91 return true; 92 } 93 94 102 public boolean visit(CopySourceEdit edit) { 103 return visitNode(edit); 104 } 105 106 114 public boolean visit(CopyTargetEdit edit) { 115 return visitNode(edit); 116 } 117 118 126 public boolean visit(MoveSourceEdit edit) { 127 return visitNode(edit); 128 } 129 130 138 public boolean visit(MoveTargetEdit edit) { 139 return visitNode(edit); 140 } 141 142 150 public boolean visit(RangeMarker edit) { 151 return visitNode(edit); 152 } 153 154 162 public boolean visit(CopyingRangeMarker edit) { 163 return visitNode(edit); 164 } 165 166 174 public boolean visit(DeleteEdit edit) { 175 return visitNode(edit); 176 } 177 178 186 public boolean visit(InsertEdit edit) { 187 return visitNode(edit); 188 } 189 190 198 public boolean visit(ReplaceEdit edit) { 199 return visitNode(edit); 200 } 201 202 210 public boolean visit(UndoEdit edit) { 211 return visitNode(edit); 212 } 213 214 222 public boolean visit(MultiTextEdit edit) { 223 return visitNode(edit); 224 } 225 } 226 | Popular Tags |