Package EDU.purdue.jtb.generate
Class TreeDumperGenerator
java.lang.Object
EDU.purdue.jtb.generate.TreeDumperGenerator
Class
Similar to UserFilesGenerator class. CODEJAVA
TreeDumperGenerator
generates the TreeDumper visitor which simply prints all the tokens in
the tree at the locations given in their beginLine and beginColumn member variables. Similar to UserFilesGenerator class. CODEJAVA
This visitor is supposed to be run once and not supposed to be run in parallel threads (on the same grammar).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Generates the tree dumper visitor source in its file.int
Saves the current buffer in the output file (global variable).
-
Field Details
-
outFilename
The visitor source file name- See Also:
-
-
Constructor Details
-
TreeDumperGenerator
Constructor. Will create the visitors directory if it does not exist.- Parameters:
aJopt
- - the JTB optionsaMess
- - the messages handler
-
-
Method Details
-
saveToFile
Saves the current buffer in the output file (global variable).- Returns:
- OK_RC or FILE_EXISTS_RC
- Throws:
IOException
- if IO problem
-
generateTreeDumper
public void generateTreeDumper()Generates the tree dumper visitor source in its file.
-