|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2 org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent org.eclipse.xpand2.Generator
public class Generator
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent |
---|
AbstractExpressionsUsingWorkflowComponent.Debug, AbstractExpressionsUsingWorkflowComponent.GlobalVar, AbstractExpressionsUsingWorkflowComponent.GlobalVarDef |
Field Summary | |
---|---|
protected java.util.List<java.lang.String> |
advices
|
protected java.lang.String |
expand
|
protected java.util.List<java.lang.String> |
extensionAdvices
|
Fields inherited from class org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent |
---|
_advice, callback, exceptionHandler, exceptionsOnNullEvaluation, log, metaModels |
Constructor Summary | |
---|---|
Generator()
|
Method Summary | |
---|---|
void |
addAdvice(java.lang.String advice)
Adds an advice. |
void |
addExtensionAdvice(java.lang.String extensionAdvice)
Adds an extension advice. |
void |
addOutlet(Outlet outlet)
Adds an outlet. |
protected void |
checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
|
protected XpandExecutionContext |
createExecutionContext(org.eclipse.emf.mwe.core.WorkflowContext wfContext,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
org.eclipse.emf.mwe.core.issues.Issues issues)
Creates the execution context that is used for evaluation of the Xpand generator. |
protected Outlet |
createOutlet()
Creates an Outlet instance. |
protected Output |
createOutput()
Creates an Output instance. |
java.util.List<? extends PostProcessor> |
getBeautifier()
Deprecated. Will be removed in 2.0 |
java.lang.String |
getComponentName()
|
java.lang.String |
getFileEncoding()
Returns the name of character encoding used for the output file. |
java.lang.String |
getLogMessage()
|
java.util.List<Outlet> |
getOutlets()
Retrieves the configured and initialized outlets of the generator. |
protected Output |
getOutput()
|
protected ProtectedRegionResolver |
getProtectedRegionResolver()
|
protected ExpandStatement |
getStatement()
|
protected void |
invokeInternal2(org.eclipse.emf.mwe.core.WorkflowContext ctx,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
org.eclipse.emf.mwe.core.issues.Issues issues)
|
void |
setAutomaticHyphens(boolean automaticHyphens)
Enables or disables the automatic hyphenation. |
void |
setBeautifier(java.util.List<? extends PostProcessor> beautifiers)
Deprecated. Configure PostProcessors per Outlet |
void |
setExpand(java.lang.String invoke)
Sets the statement that is to expand by the generator. |
void |
setFileEncoding(java.lang.String fileEncoding)
Sets the character encoding used for the output file. |
void |
setGenPath(java.lang.String genPath)
Deprecated. use addOutlet(Outlet) instead |
void |
setOutput(Output output)
Sets the output. |
void |
setPrDefaultExcludes(boolean prDefaultExcludes)
Enables oder disables the default excludes for protected regions. |
void |
setPrExcludes(java.lang.String prExcludes)
Sets the additional excludes for protected regions. |
void |
setPrSrcPaths(java.lang.String prSrcPathes)
Sets the source paths for protected regions. |
void |
setSrcPath(java.lang.String srcPath)
Deprecated. use outlets instead |
Methods inherited from class org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent |
---|
addAdvices, addDebug, addExtensionAdvices, addGlobalVar, addGlobalVarDef, addMetaModel, getExecutionContext, getGlobalVars, getNullEvaluationHandler, getResourceManager, invokeInternal, setCallback, setDumpContext, setExceptionHandler, setExceptionsOnNullEvaluation, setResourceManager, setVetoableCallback, toString |
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2 |
---|
checkConfiguration |
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent |
---|
checkRequiredConfigProperty, getBridge, getContainer, getId, getLocation, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String expand
protected final java.util.List<java.lang.String> advices
protected final java.util.List<java.lang.String> extensionAdvices
Constructor Detail |
---|
public Generator()
Method Detail |
---|
public void setAutomaticHyphens(boolean automaticHyphens)
automaticHyphens
- If true
, automatic hyphenation is enabled,
otherwise disabled.public java.lang.String getLogMessage()
getLogMessage
in interface org.eclipse.emf.mwe.core.WorkflowComponentWithID
getLogMessage
in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
AbstractWorkflowComponent.getLogMessage()
public void addAdvice(java.lang.String advice)
addAdvice
in class AbstractExpressionsUsingWorkflowComponent
advice
- the advicepublic void addExtensionAdvice(java.lang.String extensionAdvice)
addExtensionAdvice
in class AbstractExpressionsUsingWorkflowComponent
extensionAdvice
- the extension advice@Deprecated public java.util.List<? extends PostProcessor> getBeautifier()
@Deprecated public void setBeautifier(java.util.List<? extends PostProcessor> beautifiers)
beautifiers
- list of beautifierspublic void setFileEncoding(java.lang.String fileEncoding)
fileEncoding
- name of character encodingpublic java.lang.String getFileEncoding()
@Deprecated public void setGenPath(java.lang.String genPath)
addOutlet(Outlet)
instead
public void setExpand(java.lang.String invoke)
invoke
- statement to expandpublic void setPrDefaultExcludes(boolean prDefaultExcludes)
prDefaultExcludes
- If true
, the default excludes are enabled,
otherwise disabled.public void setPrExcludes(java.lang.String prExcludes)
prExcludes
- the excludespublic void setPrSrcPaths(java.lang.String prSrcPathes)
prSrcPathes
- the source pathspublic java.lang.String getComponentName()
getComponentName
in interface org.eclipse.emf.mwe.core.WorkflowComponent
getComponentName
in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
AbstractWorkflowComponent.getComponentName()
@Deprecated public void setSrcPath(java.lang.String srcPath)
protected void invokeInternal2(org.eclipse.emf.mwe.core.WorkflowContext ctx, org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor, org.eclipse.emf.mwe.core.issues.Issues issues)
invokeInternal2
in class AbstractExpressionsUsingWorkflowComponent
protected XpandExecutionContext createExecutionContext(org.eclipse.emf.mwe.core.WorkflowContext wfContext, org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor, org.eclipse.emf.mwe.core.issues.Issues issues)
protected ProtectedRegionResolver getProtectedRegionResolver()
public void addOutlet(Outlet outlet)
outlet
- the outletpublic void setOutput(Output output)
output
- the outputprotected final Output getOutput()
public final java.util.List<Outlet> getOutlets()
protected final ExpandStatement getStatement()
protected void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
checkConfigurationInternal
in class AbstractExpressionsUsingWorkflowComponent
protected Output createOutput()
protected Outlet createOutlet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |