Package EDU.purdue.jtb.common
package EDU.purdue.jtb.common
-
ClassDescriptionClass
Constantscontains static global flags, constants and names.ClassJavaBranchPrinteris not itself a visitor but it uses aJavaPrintervisitor to visit a java code branch of the tree and returns a pretty printed string representation of the subtree.TheJavaPrintervisitor reprints (with indentation) JavaCC grammar Java specific productions.A subclass of the JavaCC options class to extend it to the JTB options.
It also handles the global variables reflecting the JTB options and some derived objects and methods.ClassMessageshandles messages (informations, warnings and fatal errors), printing a message to the user and handling it appropriately.ClassProgrammaticErrorreports internal programmatic unrecoverable errors.ClassSpacingmanages the indentation information for pretty printing.ClassUnicodeConvertercontains some static methods to convert unicode chars into their escape sequence form (provided by James Huang from the JavaCC mailing list).ClassUserClassInfois used by the JTB driver, the visitors and the files generator to store and retrieve information about a (grammar) user (node) class including its name, the list of its fields, its comments.ClassVisitorInfoholds the characteristics (name, return and arguments types) of a visitor to be generated and theVisitorInfo.extract(String, List)method to create the visitors list from the visitors specification.