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>
datasetRules
protected String
extension
static String
FILL_NULLS_ANNOTATION
static String
FILL_NULLS_MEAN
static String
FILL_NULLS_MODE
static String
NORMALIZE_ANNOTATION
protected String
outputFolder
protected boolean
persistDatasets
protected String
prefix
protected boolean
silent
static String
SILENT_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 ModuleElement
adapt(AST cst, ModuleElement parentAst)
void
build(AST cst, IModule module)
org.antlr.runtime.Lexer
createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
EpsilonParser
createParser(org.antlr.runtime.TokenStream tokenStream)
DatasetRule
getDatasetRule(String ruleName)
List<DatasetRule>
getDatasetRules()
String
getExtension()
String
getFileName(DatasetRule rule)
String
getFilePath(DatasetRule rule)
HashMap<String,Class<?>>
getImportConfiguration()
String
getMainRule()
String
getOutputFolder()
String
getPrefix()
boolean
isSilent()
void
persistDatasets(boolean persistDatasets)
Set whether the datasets must be persisted into output files or notvoid
preExecution()
protected Object
processRules()
Main rule processing logic.void
setExtension(String extension)
void
setOutputFolder(String attribute)
void
setPrefix(String prefix)
void
setSilent(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:
build
in interfaceModuleElement
- Overrides:
build
in classErlModule
-
createLexer
public org.antlr.runtime.Lexer createLexer(org.antlr.runtime.ANTLRInputStream inputStream)
- Overrides:
createLexer
in classErlModule
-
createParser
public EpsilonParser createParser(org.antlr.runtime.TokenStream tokenStream)
- Overrides:
createParser
in classErlModule
-
getMainRule
public String getMainRule()
- Overrides:
getMainRule
in classErlModule
-
getImportConfiguration
public HashMap<String,Class<?>> getImportConfiguration()
- Overrides:
getImportConfiguration
in classErlModule
-
processRules
protected Object processRules() throws EolRuntimeException
Description copied from class:ErlModule
Main rule processing logic. Non-abstract for compatibility.- Overrides:
processRules
in 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
-
-