Package org.eclipse.epsilon.eol
Class AbstractModule
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.AbstractModule
- All Implemented Interfaces:
IModule
,ModuleElement
- Direct Known Subclasses:
EolModule
-
Field Summary
Modifier and TypeFieldDescriptionprotected ArrayList<ParseProblem>
protected EpsilonParser
protected File
protected URI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ModuleElement
adapt
(AST cst, ModuleElement parentAst) protected void
assignAnnotations
(AST ast) protected void
assignComment
(AST root, org.antlr.runtime.CommonToken comment) protected void
assignComments
(AST root, List<org.antlr.runtime.CommonToken> comments) createAst
(AST cst, ModuleElement parentAst) protected abstract org.antlr.runtime.Lexer
createLexer
(org.antlr.runtime.ANTLRInputStream inputStream) abstract EpsilonParser
createParser
(org.antlr.runtime.TokenStream tokenStream) protected List<org.antlr.runtime.CommonToken>
extractComments
(org.antlr.runtime.CommonTokenStream stream) abstract String
protected boolean
invokeMainRule
(List<org.antlr.runtime.CommonToken> comments) boolean
boolean
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
build, equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
parse, parse, parse, parse
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
build, getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
parser
-
parseProblems
-
sourceFile
-
sourceUri
-
-
Constructor Details
-
AbstractModule
public AbstractModule()
-
-
Method Details
-
getMainRule
-
createLexer
protected abstract org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream) -
createParser
-
getSourceFile
-
getSourceUri
- Specified by:
getSourceUri
in interfaceIModule
-
getParseProblems
- Specified by:
getParseProblems
in interfaceIModule
-
parse
-
parse
-
invokeMainRule
- Throws:
Exception
-
createAst
-
adapt
-
extractComments
protected List<org.antlr.runtime.CommonToken> extractComments(org.antlr.runtime.CommonTokenStream stream) -
assignComments
-
assignComment
-
assignAnnotations
-