Package org.jibx.schema.codegen
Class SourceBuilder.WriterVisitor
- java.lang.Object
-
- TextEditVisitor
-
- org.jibx.schema.codegen.SourceBuilder.WriterVisitor
-
- Enclosing class:
- SourceBuilder
private static class SourceBuilder.WriterVisitor extends TextEditVisitor
Visitor to apply edits. This is used to avoid the overhead of standard document processing of the edits generated by formatting.
-
-
Constructor Summary
Constructors Constructor Description WriterVisitor(java.lang.String base, java.io.Writer writer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
copy(int offset)
void
finish()
Finish writing output.private void
skip(int offset)
boolean
visit(DeleteEdit edit)
boolean
visit(InsertEdit edit)
boolean
visit(ReplaceEdit edit)
-
-
-
Method Detail
-
skip
private void skip(int offset)
-
copy
private void copy(int offset)
-
visit
public boolean visit(DeleteEdit edit)
-
visit
public boolean visit(InsertEdit edit)
-
visit
public boolean visit(ReplaceEdit edit)
-
finish
public void finish()
Finish writing output. This needs to be called after visiting the tree, to catch any final bits at the end.
-
-