Class JJTreeGlobals


  • public class JJTreeGlobals
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Set<java.lang.String> jjtreeOptions
      This set stores the JJTree-specific options that should not be passed down to JavaCC
      static java.lang.String nodePackageName
      The package the node files live in.
      static java.lang.String packageName
      The package that the parser lives in.
      static Token parserClassBodyStart
      The first token of the parser class body (the {).
      static Token parserImplements
      The implements token of the parser class.
      static Token parserImports
      The first token of the import list, or the position where such a list should be inserted.
      static java.lang.String parserName
      Use this like className.
      static java.util.Map<java.lang.String,​ASTProduction> productions
      This is mapping from production names to ASTProduction objects.
      (package private) static java.util.List<java.lang.String> toolList  
      static java.lang.String toolName
      String that identifies the JavaCC generated files.
    • Constructor Summary

      Constructors 
      Constructor Description
      JJTreeGlobals()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void initialize()  
      (package private) static boolean isOptionJJTreeOnly​(java.lang.String optionName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • toolName

        public static final java.lang.String toolName
        String that identifies the JavaCC generated files.
        See Also:
        Constant Field Values
      • jjtreeOptions

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

        static java.util.List<java.lang.String> toolList
      • parserName

        public static java.lang.String parserName
        Use this like className.
      • packageName

        public static java.lang.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 java.lang.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 java.util.Map<java.lang.String,​ASTProduction> productions
        This is mapping from production names to ASTProduction objects.
    • Constructor Detail

      • JJTreeGlobals

        public JJTreeGlobals()
    • Method Detail

      • initialize

        static void initialize()
      • isOptionJJTreeOnly

        static boolean isOptionJJTreeOnly​(java.lang.String optionName)