public class CodeGenerationRequestCreator
extends java.lang.Object
| Constructor and Description |
|---|
CodeGenerationRequestCreator() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<CodeSnippetDescriptor> |
processSourceFile(java.util.List<Token> tokens,
java.io.File srcFile,
java.util.List<java.util.List<AugmentingCode>> specAugCodesList,
java.util.List<java.lang.Exception> errors)
Extracts augmenting code and generated code sections from a source file.
|
public static java.util.List<CodeSnippetDescriptor> processSourceFile(java.util.List<Token> tokens, java.io.File srcFile, java.util.List<java.util.List<AugmentingCode>> specAugCodesList, java.util.List<java.lang.Exception> errors)
tokens - results of tokenizing a source filesrcFile - source filespecAugCodesList - destination for saving augmenting code sections according
to the index of their directive set as used during tokenization.errors - optional list for saving errors and continuing processing as far
as possible. If null, then any error is immediately raised as an exception.