Package EDU.purdue.jtb.common


package EDU.purdue.jtb.common
  • Class
    Description
    Class Constants contains static global flags, constants and names.
    Class JavaBranchPrinter is not itself a visitor but it uses a JavaPrinter visitor to visit a java code branch of the tree and returns a pretty printed string representation of the subtree.
    The JavaPrinter 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.
    Class Messages handles messages (informations, warnings and fatal errors), printing a message to the user and handling it appropriately.
    Class ProgrammaticError reports internal programmatic unrecoverable errors.
    Class Spacing manages the indentation information for pretty printing.
    Class UnicodeConverter contains some static methods to convert unicode chars into their escape sequence form (provided by James Huang from the JavaCC mailing list).
    Class UserClassInfo 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.
    Class VisitorInfo holds the characteristics (name, return and arguments types) of a visitor to be generated and the VisitorInfo.extract(String, List) method to create the visitors list from the visitors specification.