public abstract class EolLibraryModule extends AbstractModule implements IEolLibraryModule
Modifier and Type | Field and Description |
---|---|
protected EolCompilationContext |
compilationContext |
protected List<ModelDeclaration> |
declaredModelDeclarations |
protected OperationList |
declaredOperations |
protected List<Import> |
imports |
protected Set<ModelDeclaration> |
modelDeclarations |
protected OperationList |
operations |
ast, parseProblems, parser, sourceFile, sourceUri
comments
annotations, column, commentTokens, descendants, extraTokens, imaginary, line, module, properties, region, uri
Constructor and Description |
---|
EolLibraryModule() |
Modifier and Type | Method and Description |
---|---|
AST |
adapt(AST cst,
AST parentAst) |
protected void |
build(AST ast) |
void |
buildModel() |
protected void |
checkImports() |
List<ModuleMarker> |
compile() |
protected org.antlr.runtime.Lexer |
createLexer(org.antlr.runtime.ANTLRInputStream inputStream) |
EpsilonParser |
createParser(org.antlr.runtime.TokenStream tokenStream) |
AST |
getAst() |
EolCompilationContext |
getCompilationContext() |
List<ModelDeclaration> |
getDeclaredModelDeclarations() |
OperationList |
getDeclaredOperations() |
HashMap<String,Class<?>> |
getImportConfiguration() |
List<Import> |
getImports() |
protected Collection<Import> |
getImportsByExtension(String extension,
Class<?> moduleImplClass) |
String |
getMainRule() |
Set<ModelDeclaration> |
getModelDelcarations() |
List<ModuleElement> |
getModuleElements() |
OperationList |
getOperations() |
IEolLibraryModule |
getParentModule() |
File |
getSourceFile() |
protected void |
prepareContext(IEolContext context) |
void |
reset() |
void |
setParentModule(IEolLibraryModule parent) |
String |
toString() |
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceUri, invokeMainRule, parse, parse, parse, parse
build, getComments, getDebugInfo
collectDescendants, getAnnotationsAst, getBasename, getChild, getChildren, getColumn, getCommentTokens, getDescendants, getExtraTokens, getFile, getFirstChild, getFourthChild, getLine, getModule, getNextSibling, getNumberOfChildren, getParent, getProperties, getRegion, getSecondChild, getThirdChild, getUri, hasChildren, isImaginary, setAnnotationsAst, setColumn, setCommentTokens, setExtraTokens, setFirstChild, setImaginary, setLine, setModule, setNextSibling, setRegion, setToken, setUri, toExtendedStringTree, toExtendedStringTree, toExtendedStringTreeItem
dupNode, getCharPositionInLine, getChildIndex, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getChildCount, getFirstChildWithType, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getParseProblems, setContext
protected OperationList declaredOperations
protected OperationList operations
protected List<ModelDeclaration> declaredModelDeclarations
protected Set<ModelDeclaration> modelDeclarations
protected EolCompilationContext compilationContext
public AST adapt(AST cst, AST parentAst)
adapt
in class AbstractModule
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
createLexer
in class AbstractModule
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
createParser
in class AbstractModule
public String getMainRule()
getMainRule
in class AbstractModule
public OperationList getDeclaredOperations()
getDeclaredOperations
in interface IEolLibraryModule
public void buildModel() throws Exception
buildModel
in interface IModule
buildModel
in class AbstractModule
Exception
protected void build(AST ast)
public EolCompilationContext getCompilationContext()
getCompilationContext
in interface IEolLibraryModule
protected void prepareContext(IEolContext context)
public List<ModuleMarker> compile()
public void reset()
reset
in interface IModule
reset
in class AbstractModule
public AST getAst()
getAst
in interface IModule
getAst
in class AbstractModule
public List<ModuleElement> getModuleElements()
getModuleElements
in interface ModuleElement
getModuleElements
in class AbstractModule
public File getSourceFile()
getSourceFile
in class AbstractModule
public List<Import> getImports()
getImports
in interface IEolLibraryModule
public String toString()
toString
in interface org.antlr.runtime.tree.Tree
toString
in class org.antlr.runtime.tree.CommonTree
public Set<ModelDeclaration> getModelDelcarations()
getModelDelcarations
in interface IEolLibraryModule
public OperationList getOperations()
getOperations
in interface IEolLibraryModule
protected Collection<Import> getImportsByExtension(String extension, Class<?> moduleImplClass)
protected void checkImports()
public List<ModelDeclaration> getDeclaredModelDeclarations()
getDeclaredModelDeclarations
in interface IEolLibraryModule
public IEolLibraryModule getParentModule()
getParentModule
in interface IEolLibraryModule
public void setParentModule(IEolLibraryModule parent)
setParentModule
in interface IEolLibraryModule
Copyright © 2016. All rights reserved.