Package org.eclipse.epsilon.pinset
Class PinsetModule
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.AbstractModule
-
- org.eclipse.epsilon.eol.EolModule
-
- org.eclipse.epsilon.erl.ErlModule
-
- org.eclipse.epsilon.pinset.PinsetModule
-
- All Implemented Interfaces:
IModule,ModuleElement,IEolModule,IErlModule
public class PinsetModule extends ErlModule
PinsetModule.- Since:
- 2.1
- Author:
- Alfonso de la Vega
-
-
Field Summary
Fields Modifier and Type Field Description protected List<DatasetRule>datasetRulesprotected Stringextensionstatic StringFILL_NULLS_ANNOTATIONstatic StringFILL_NULLS_MEANstatic StringFILL_NULLS_MODEstatic StringNORMALIZE_ANNOTATIONprotected StringoutputFolderprotected booleanpersistDatasetsprotected Stringprefixprotected booleansilentstatic StringSILENT_ANNOTATION-
Fields inherited from class org.eclipse.epsilon.erl.ErlModule
declaredPost, declaredPre, post, pre
-
Fields inherited from class org.eclipse.epsilon.eol.EolModule
context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatements
-
Fields inherited from class org.eclipse.epsilon.eol.AbstractModule
parseProblems, parser, sourceFile, sourceUri
-
-
Constructor Summary
Constructors Constructor Description PinsetModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleElementadapt(AST cst, ModuleElement parentAst)voidbuild(AST cst, IModule module)org.antlr.runtime.LexercreateLexer(org.antlr.runtime.ANTLRInputStream inputStream)EpsilonParsercreateParser(org.antlr.runtime.TokenStream tokenStream)DatasetRulegetDatasetRule(String ruleName)List<DatasetRule>getDatasetRules()StringgetExtension()StringgetFileName(DatasetRule rule)StringgetFilePath(DatasetRule rule)HashMap<String,Class<?>>getImportConfiguration()StringgetMainRule()StringgetOutputFolder()StringgetPrefix()booleanisSilent()voidpersistDatasets(boolean persistDatasets)Set whether the datasets must be persisted into output files or notvoidpreExecution()protected ObjectprocessRules()Main rule processing logic.voidsetExtension(String extension)voidsetOutputFolder(String attribute)voidsetPrefix(String prefix)voidsetSilent(boolean silent)-
Methods inherited from class org.eclipse.epsilon.erl.ErlModule
calculateSuperRules, execute, execute, executeImpl, getContext, getDeclaredPost, getDeclaredPre, getPost, getPre, postExecution, prepareExecution
-
Methods inherited from class org.eclipse.epsilon.eol.EolModule
checkImports, clearCache, execute, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getImportsByExtension, getMain, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setMain, setParentModule, toString
-
Methods inherited from class org.eclipse.epsilon.eol.AbstractModule
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parse
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, execute, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setParentModule
-
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getSourceUri, parse, parse, parse, parse, parse
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
SILENT_ANNOTATION
public static final String SILENT_ANNOTATION
- See Also:
- Constant Field Values
-
NORMALIZE_ANNOTATION
public static final String NORMALIZE_ANNOTATION
- See Also:
- Constant Field Values
-
FILL_NULLS_ANNOTATION
public static final String FILL_NULLS_ANNOTATION
- See Also:
- Constant Field Values
-
FILL_NULLS_MEAN
public static final String FILL_NULLS_MEAN
- See Also:
- Constant Field Values
-
FILL_NULLS_MODE
public static final String FILL_NULLS_MODE
- See Also:
- Constant Field Values
-
datasetRules
protected List<DatasetRule> datasetRules
-
outputFolder
protected String outputFolder
-
extension
protected String extension
-
prefix
protected String prefix
-
silent
protected boolean silent
-
persistDatasets
protected boolean persistDatasets
-
-
Method Detail
-
adapt
public ModuleElement adapt(AST cst, ModuleElement parentAst)
-
build
public void build(AST cst, IModule module)
- Specified by:
buildin interfaceModuleElement- Overrides:
buildin classErlModule
-
createLexer
public org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
- Overrides:
createLexerin classErlModule
-
createParser
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
- Overrides:
createParserin classErlModule
-
getMainRule
public String getMainRule()
- Overrides:
getMainRulein classErlModule
-
getImportConfiguration
public HashMap<String,Class<?>> getImportConfiguration()
- Overrides:
getImportConfigurationin classErlModule
-
processRules
protected Object processRules() throws EolRuntimeException
Description copied from class:ErlModuleMain rule processing logic. Non-abstract for compatibility.- Overrides:
processRulesin classErlModule- Returns:
- The result of executing this module.
- Throws:
EolRuntimeException
-
preExecution
public void preExecution() throws EolRuntimeException- Throws:
EolRuntimeException
-
getDatasetRules
public List<DatasetRule> getDatasetRules()
-
getDatasetRule
public DatasetRule getDatasetRule(String ruleName)
-
setOutputFolder
public void setOutputFolder(String attribute)
-
getOutputFolder
public String getOutputFolder()
-
getFilePath
public String getFilePath(DatasetRule rule)
-
getFileName
public String getFileName(DatasetRule rule)
-
getPrefix
public String getPrefix()
-
setPrefix
public void setPrefix(String prefix)
-
getExtension
public String getExtension()
-
setExtension
public void setExtension(String extension)
-
isSilent
public boolean isSilent()
-
setSilent
public void setSilent(boolean silent)
-
persistDatasets
public void persistDatasets(boolean persistDatasets)
Set whether the datasets must be persisted into output files or not
-
-