Package EDU.purdue.jtb.common
package EDU.purdue.jtb.common
-
ClassDescriptionClass
Constants
contains static global flags, constants and names.ClassJavaBranchPrinter
is not itself a visitor but it uses aJavaPrinter
visitor to visit a java code branch of the tree and returns a pretty printed string representation of the subtree.TheJavaPrinter
visitor 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.ClassMessages
handles messages (informations, warnings and fatal errors), printing a message to the user and handling it appropriately.ClassProgrammaticError
reports internal programmatic unrecoverable errors.ClassSpacing
manages the indentation information for pretty printing.ClassUnicodeConverter
contains some static methods to convert unicode chars into their escape sequence form (provided by James Huang from the JavaCC mailing list).ClassUserClassInfo
is 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.ClassVisitorInfo
holds 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.