public class EplModule extends ErlModule implements IEolExecutableModule
Modifier and Type | Field and Description |
---|---|
protected IEolContext |
context |
protected List<Pattern> |
declaredPatterns |
static int |
INFINITE |
protected int |
maxLoops |
protected String |
patternMatchModelName |
protected ArrayList<Pattern> |
patterns |
protected boolean |
repeatWhileMatchesFound |
declaredPost, declaredPre, post, pre
compilationContext, declaredModelDeclarations, declaredOperations, imports, modelDeclarations, operations
ast, parseProblems, parser, sourceFile, sourceUri
comments
annotations, column, commentTokens, descendants, extraTokens, imaginary, line, module, properties, region, uri
Constructor and Description |
---|
EplModule() |
Modifier and Type | Method and Description |
---|---|
AST |
adapt(AST cst,
AST parentAst) |
void |
buildModel() |
protected org.antlr.runtime.Lexer |
createLexer(org.antlr.runtime.ANTLRInputStream inputStream) |
EpsilonParser |
createParser(org.antlr.runtime.TokenStream tokenStream) |
Object |
execute() |
IEolContext |
getContext() |
List<Pattern> |
getDeclaredPatterns() |
HashMap<String,Class<?>> |
getImportConfiguration() |
String |
getMainRule() |
int |
getMaximumLevel() |
int |
getMaxLoops() |
List<ModuleElement> |
getModuleElements() |
String |
getPatternMatchModelName() |
List<Pattern> |
getPatterns() |
protected int |
getPostBlockTokenType() |
protected int |
getPreBlockTokenType() |
boolean |
isRepeatWhileMatches() |
static void |
main(String[] args) |
void |
reset() |
void |
setContext(EolContext context) |
void |
setContext(IEolContext context) |
void |
setMaxLoops(int maxLoops) |
void |
setPatternMatchModelName(String patternMatchModelName) |
void |
setRepeatWhileMatches(boolean repeatWhileMatches) |
calculateSuperRules, execute, getDeclaredPost, getDeclaredPre, getPost, getPre
build, checkImports, compile, getAst, getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getModelDelcarations, getOperations, getParentModule, getSourceFile, prepareContext, setParentModule, 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
getCompilationContext, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getModelDelcarations, getOperations, getParentModule, getParseProblems, setParentModule
protected IEolContext context
protected boolean repeatWhileMatchesFound
protected int maxLoops
protected String patternMatchModelName
public static final int INFINITE
protected org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
createLexer
in class EolLibraryModule
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
createParser
in class EolLibraryModule
public String getMainRule()
getMainRule
in class EolLibraryModule
public HashMap<String,Class<?>> getImportConfiguration()
getImportConfiguration
in class EolLibraryModule
public void buildModel() throws Exception
buildModel
in interface IModule
buildModel
in class ErlModule
Exception
public List<ModuleElement> getModuleElements()
getModuleElements
in interface ModuleElement
getModuleElements
in class EolLibraryModule
public IEolContext getContext()
getContext
in interface IEolLibraryModule
public void setContext(EolContext context)
public void reset()
public Object execute() throws EolRuntimeException
execute
in interface IEolExecutableModule
EolRuntimeException
public int getMaxLoops()
public void setMaxLoops(int maxLoops)
public boolean isRepeatWhileMatches()
public void setRepeatWhileMatches(boolean repeatWhileMatches)
protected int getPreBlockTokenType()
getPreBlockTokenType
in class ErlModule
protected int getPostBlockTokenType()
getPostBlockTokenType
in class ErlModule
public int getMaximumLevel()
public String getPatternMatchModelName()
public void setPatternMatchModelName(String patternMatchModelName)
public void setContext(IEolContext context)
setContext
in interface IEolLibraryModule
Copyright © 2016. All rights reserved.