public class EglPreprocessorModule extends EolModule
Modifier and Type | Field and Description |
---|---|
protected AST |
ast |
main, postOperationStatements
compilationContext, declaredModelDeclarations, declaredOperations, imports, modelDeclarations, operations
parseProblems, parser, sourceFile, sourceUri
Constructor and Description |
---|
EglPreprocessorModule() |
Modifier and Type | Method and Description |
---|---|
ModuleElement |
adapt(AST cst,
ModuleElement parentAst) |
void |
build(AST cst,
IModule module) |
Object |
execute() |
EglPreprocessorContext |
getContext() |
HashMap<String,Class<?>> |
getImportConfiguration()
Get the import configurations for this translation.
|
List<ParseProblem> |
getParseProblems() |
protected boolean |
hasAnnotation(AST ast,
String name) |
boolean |
preprocess(AST ast,
File sourceFile,
URI sourceUri) |
void |
reset() |
protected void |
updateASTLocations(AST ast) |
clearCache, compile, createContext, getMain, getPostOperationStatements, main, setContext, setMain
checkImports, createLexer, createParser, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMainRule, getModelDelcarations, getOperations, getParentModule, prepareContext, setParentModule, toString
assignAnnotations, assignComment, assignComments, createAst, extractComments, getSourceFile, getSourceUri, invokeMainRule, parse, parse, parse, parse
getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
parse
getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getModelDelcarations, getOperations, getParentModule, setParentModule
protected AST ast
public EglPreprocessorContext getContext()
getContext
in interface IEolLibraryModule
getContext
in class EolModule
public void reset()
public void build(AST cst, IModule module)
build
in interface ModuleElement
build
in class EolModule
protected void updateASTLocations(AST ast)
public ModuleElement adapt(AST cst, ModuleElement parentAst)
public Object execute() throws EglRuntimeException
execute
in interface IEolExecutableModule
execute
in class EolModule
EglRuntimeException
public List<ParseProblem> getParseProblems()
getParseProblems
in interface IModule
getParseProblems
in interface IEolLibraryModule
getParseProblems
in class AbstractModule
public final HashMap<String,Class<?>> getImportConfiguration()
getImportConfiguration
in class EolLibraryModule
Copyright © 2016. All rights reserved.