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>
datasetRules
protected java.lang.String
extension
static java.lang.String
FILL_NULLS_ANNOTATION
static java.lang.String
FILL_NULLS_MEAN
static java.lang.String
FILL_NULLS_MODE
static java.lang.String
NORMALIZE_ANNOTATION
protected java.lang.String
outputFolder
protected boolean
persistDatasets
protected java.lang.String
prefix
protected java.lang.String
separator
protected boolean
silent
static java.lang.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
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 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)
java.util.List<DatasetRule>
getDatasetRules()
java.lang.String
getExtension()
java.lang.String
getFileName(DatasetRule rule)
java.lang.String
getFilePath(DatasetRule rule)
java.util.HashMap<java.lang.String,java.lang.Class<?>>
getImportConfiguration()
java.lang.String
getMainRule()
java.lang.String
getOutputFolder()
java.lang.String
getPrefix()
java.lang.String
getSeparator()
boolean
isSilent()
void
persistDatasets(boolean persistDatasets)
Set whether the datasets must be persisted into output files or notprotected java.lang.Object
processRules()
Main rule processing logic.void
setExtension(java.lang.String extension)
void
setOutputFolder(java.lang.String attribute)
void
setPrefix(java.lang.String prefix)
void
setSeparator(java.lang.String separator)
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, 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, 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, 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:
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 java.lang.String getMainRule()
- Overrides:
getMainRule
in classErlModule
-
getImportConfiguration
public java.util.HashMap<java.lang.String,java.lang.Class<?>> getImportConfiguration()
- Overrides:
getImportConfiguration
in classErlModule
-
processRules
protected java.lang.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
-
getDatasetRules
public java.util.List<DatasetRule> getDatasetRules()
-
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
-
-