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 java.util.List<DatasetRule>datasetRulesprotected java.lang.Stringextensionstatic java.lang.StringFILL_NULLS_ANNOTATIONstatic java.lang.StringFILL_NULLS_MEANstatic java.lang.StringFILL_NULLS_MODEstatic java.lang.StringNORMALIZE_ANNOTATIONprotected java.lang.StringoutputFolderprotected booleanpersistDatasetsprotected java.lang.Stringprefixprotected java.lang.Stringseparatorprotected booleansilentstatic java.lang.StringSILENT_ANNOTATION-
Fields inherited from class org.eclipse.epsilon.erl.ErlModule
declaredPost, declaredPre, post, pre
-
Fields inherited from class org.eclipse.epsilon.eol.EolModule
compilationContext, 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(java.lang.String ruleName)java.util.List<DatasetRule>getDatasetRules()java.lang.StringgetExtension()java.lang.StringgetFileName(DatasetRule rule)java.lang.StringgetFilePath(DatasetRule rule)java.util.HashMap<java.lang.String,java.lang.Class<?>>getImportConfiguration()java.lang.StringgetMainRule()java.lang.StringgetOutputFolder()java.lang.StringgetPrefix()java.lang.StringgetSeparator()booleanisSilent()voidpersistDatasets(boolean persistDatasets)Set whether the datasets must be persisted into output files or notvoidpreExecution()protected java.lang.ObjectprocessRules()Main rule processing logic.voidsetExtension(java.lang.String extension)voidsetOutputFolder(java.lang.String attribute)voidsetPrefix(java.lang.String prefix)voidsetSeparator(java.lang.String separator)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, compile, execute, getCompilationContext, 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, getCompilationContext, getConfigurationProperties, getDeclaredModelDeclarations, getDeclaredOperations, getImports, getMain, getModelDelcarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setParentModule
-
Methods inherited from interface org.eclipse.epsilon.common.module.IModule
compile, 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 java.lang.String SILENT_ANNOTATION
- See Also:
- Constant Field Values
-
NORMALIZE_ANNOTATION
public static final java.lang.String NORMALIZE_ANNOTATION
- See Also:
- Constant Field Values
-
FILL_NULLS_ANNOTATION
public static final java.lang.String FILL_NULLS_ANNOTATION
- See Also:
- Constant Field Values
-
FILL_NULLS_MEAN
public static final java.lang.String FILL_NULLS_MEAN
- See Also:
- Constant Field Values
-
FILL_NULLS_MODE
public static final java.lang.String FILL_NULLS_MODE
- See Also:
- Constant Field Values
-
datasetRules
protected java.util.List<DatasetRule> datasetRules
-
outputFolder
protected java.lang.String outputFolder
-
separator
protected java.lang.String separator
-
extension
protected java.lang.String extension
-
prefix
protected java.lang.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 java.lang.String getMainRule()
- Overrides:
getMainRulein classErlModule
-
getImportConfiguration
public java.util.HashMap<java.lang.String,java.lang.Class<?>> getImportConfiguration()
- Overrides:
getImportConfigurationin classErlModule
-
processRules
protected java.lang.Object processRules() throws EolRuntimeExceptionDescription 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 java.util.List<DatasetRule> getDatasetRules()
-
getDatasetRule
public DatasetRule getDatasetRule(java.lang.String ruleName)
-
setOutputFolder
public void setOutputFolder(java.lang.String attribute)
-
getOutputFolder
public java.lang.String getOutputFolder()
-
getFilePath
public java.lang.String getFilePath(DatasetRule rule)
-
getFileName
public java.lang.String getFileName(DatasetRule rule)
-
getSeparator
public java.lang.String getSeparator()
-
getPrefix
public java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
setSeparator
public void setSeparator(java.lang.String separator)
-
getExtension
public java.lang.String getExtension()
-
setExtension
public void setExtension(java.lang.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
-
-