|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 List<String> |
advices
|
protected String |
expand
|
protected List<String> |
extensionAdvices
|
| Fields inherited from class org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent |
|---|
_advice, callback, exceptionHandler, exceptionsOnNullEvaluation, log, metaModels |
| Constructor Summary | |
|---|---|
Generator()
|
|
| Method Summary | |
|---|---|
void |
addAdvice(String advice)
Adds an advice. |
void |
addExtensionAdvice(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. |
List<? extends PostProcessor> |
getBeautifier()
Deprecated. Will be removed in 2.0 |
String |
getComponentName()
|
String |
getFileEncoding()
Returns the name of character encoding used for the output file. |
String |
getLogMessage()
|
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(List<? extends PostProcessor> beautifiers)
Deprecated. Configure PostProcessors per Outlet |
void |
setExpand(String invoke)
Sets the statement that is to expand by the generator. |
void |
setFileEncoding(String fileEncoding)
Sets the character encoding used for the output file. |
void |
setGenPath(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(String prExcludes)
Sets the additional excludes for protected regions. |
void |
setPrSrcPaths(String prSrcPathes)
Sets the source paths for protected regions. |
void |
setSrcPath(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 String expand
protected final List<String> advices
protected final List<String> extensionAdvices
| Constructor Detail |
|---|
public Generator()
| Method Detail |
|---|
public void setAutomaticHyphens(boolean automaticHyphens)
automaticHyphens - If true, automatic hyphenation is enabled,
otherwise disabled.public String getLogMessage()
getLogMessage in interface org.eclipse.emf.mwe.core.WorkflowComponentWithIDgetLogMessage in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponentAbstractWorkflowComponent.getLogMessage()public void addAdvice(String advice)
addAdvice in class AbstractExpressionsUsingWorkflowComponentadvice - the advicepublic void addExtensionAdvice(String extensionAdvice)
addExtensionAdvice in class AbstractExpressionsUsingWorkflowComponentextensionAdvice - the extension advice@Deprecated public List<? extends PostProcessor> getBeautifier()
@Deprecated public void setBeautifier(List<? extends PostProcessor> beautifiers)
beautifiers - list of beautifierspublic void setFileEncoding(String fileEncoding)
fileEncoding - name of character encodingpublic String getFileEncoding()
@Deprecated public void setGenPath(String genPath)
addOutlet(Outlet) instead
public void setExpand(String invoke)
invoke - statement to expandpublic void setPrDefaultExcludes(boolean prDefaultExcludes)
prDefaultExcludes - If true, the default excludes are enabled,
otherwise disabled.public void setPrExcludes(String prExcludes)
prExcludes - the excludespublic void setPrSrcPaths(String prSrcPathes)
prSrcPathes - the source pathspublic String getComponentName()
getComponentName in interface org.eclipse.emf.mwe.core.WorkflowComponentgetComponentName in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponentAbstractWorkflowComponent.getComponentName()@Deprecated public void setSrcPath(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 List<Outlet> getOutlets()
protected final ExpandStatement getStatement()
protected void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
checkConfigurationInternal in class AbstractExpressionsUsingWorkflowComponentprotected Output createOutput()
protected Outlet createOutlet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||