Class JJTreeGlobals

java.lang.Object
org.javacc.jjtree.JJTreeGlobals

public class JJTreeGlobals extends Object
  • Field Details

    • toolName

      public static final String toolName
      String that identifies the JavaCC generated files.
      See Also:
    • jjtreeOptions

      private static Set<String> jjtreeOptions
      This set stores the JJTree-specific options that should not be passed down to JavaCC
    • toolList

      static List<String> toolList
    • parserName

      public static String parserName
      Use this like className.
    • packageName

      public static String packageName
      The package that the parser lives in. If the grammar doesn't specify a package it is the empty string.
    • nodePackageName

      public static String nodePackageName
      The package the node files live in. If the NODE_PACKAGE option is not set, then this defaults to packageName.
    • parserImplements

      public static Token parserImplements
      The implements token of the parser class. If the parser doesn't have one then it is the first "{" of the parser class body.
    • parserClassBodyStart

      public static Token parserClassBodyStart
      The first token of the parser class body (the {). The JJTree state is inserted after this token.
    • parserImports

      public static Token parserImports
      The first token of the import list, or the position where such a list should be inserted. The import for the Node Package is inserted after this token.
    • productions

      public static Map<String,ASTProduction> productions
      This is mapping from production names to ASTProduction objects.
  • Constructor Details

    • JJTreeGlobals

      public JJTreeGlobals()
  • Method Details

    • initialize

      static void initialize()
    • isOptionJJTreeOnly

      static boolean isOptionJJTreeOnly(String optionName)