Package org.javacc.jjtree
Class JJTreeGlobals
- java.lang.Object
-
- org.javacc.jjtree.JJTreeGlobals
-
public class JJTreeGlobals extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>jjtreeOptionsThis set stores the JJTree-specific options that should not be passed down to JavaCCstatic java.lang.StringnodePackageNameThe package the node files live in.static java.lang.StringpackageNameThe package that the parser lives in.static TokenparserClassBodyStartThe first token of the parser class body (the{).static TokenparserImplementsTheimplementstoken of the parser class.static TokenparserImportsThe first token of theimportlist, or the position where such a list should be inserted.static java.lang.StringparserNameUse this like className.static java.util.Map<java.lang.String,ASTProduction>productionsThis is mapping from production names to ASTProduction objects.(package private) static java.util.List<java.lang.String>toolListstatic java.lang.StringtoolNameString 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 voidinitialize()(package private) static booleanisOptionJJTreeOnly(java.lang.String optionName)
-
-
-
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
Theimplementstoken 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 theimportlist, 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.
-
-