java.lang.Object
de.grogra.xl.compiler.CompilationUnit
A
CompilationUnit
is a simple collection of items which
constitute the complete input of a single source file for the XL compiler.- Author:
- Ole Kniemeyer
-
Field Summary
Modifier and TypeFieldDescriptionfinal Annotation[]
final ClassPath
The class path for existing class files.final Scope
The automatic imports for the compilation unit.final byte[]
The bytes in case of an already compiled RGG Jar file.final CompilerOptions
The default options for the compiler.final RecognitionExceptionList
Compilation problems are passed to this instance by the XL compiler.final String
Name of source file.final antlr.collections.AST
The root of the abstract syntax tree of the source file. -
Constructor Summary
ConstructorDescriptionCompilationUnit
(ClassPath classPath, antlr.collections.AST tree, String source, RecognitionExceptionList problems, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) CompilationUnit
(String source, byte[] code) -
Method Summary
-
Field Details
-
classPath
The class path for existing class files. -
tree
public final antlr.collections.AST treeThe root of the abstract syntax tree of the source file. This is null for an already compiled Java class. -
source
Name of source file. -
problems
Compilation problems are passed to this instance by the XL compiler. -
defaultImports
The automatic imports for the compilation unit. -
options
The default options for the compiler. -
annotations
-
jarBytes
public final byte[] jarBytesThe bytes in case of an already compiled RGG Jar file.
-
-
Constructor Details
-
CompilationUnit
public CompilationUnit(ClassPath classPath, antlr.collections.AST tree, String source, RecognitionExceptionList problems, Scope defaultImports, CompilerOptions options, Collection<Annotation> annotations) -
CompilationUnit
-
-
Method Details