Package org.javacc.parser
Class Context
- java.lang.Object
-
- org.javacc.parser.Context
-
- Direct Known Subclasses:
JJDocContext,JJTreeContext
public class Context extends java.lang.ObjectThe JavaCC context provides all environment variables for the code generation process.
-
-
Field Summary
Fields Modifier and Type Field Description private CodeGeneratorcodeGeneratorprivate JavaCCErrorserrorsprivate JavaCCGlobalsglobalsprivate Optionsoptions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateOutputDir(java.io.File outputDir)JavaCCErrorserrors()Get the error instance.CodeGeneratorgetCodeGenerator()Get theCodeGenerator.JavaCCGlobalsglobals()Get the globals instance.Optionsoptions()Get the options.
-
-
-
Field Detail
-
errors
private final JavaCCErrors errors
-
globals
private final JavaCCGlobals globals
-
options
private final Options options
-
codeGenerator
private CodeGenerator codeGenerator
-
-
Constructor Detail
-
Context
public Context()
-
Context
public Context(Options options)
-
-
Method Detail
-
errors
public final JavaCCErrors errors()
Get the error instance.
-
globals
public final JavaCCGlobals globals()
Get the globals instance.
-
options
public final Options options()
Get the options.
-
getCodeGenerator
public final CodeGenerator getCodeGenerator()
Get theCodeGenerator.
-
createOutputDir
public final void createOutputDir(java.io.File outputDir)
-
-