org.eclipse.emf.codegen.jmerge
Class JMerger
java.lang.Object
|
+--org.eclipse.emf.codegen.jmerge.JMerger
- All Implemented Interfaces:
- org.eclipse.core.boot.IPlatformRunnable
- public class JMerger
- extends java.lang.Object
- implements org.eclipse.core.boot.IPlatformRunnable
This implements the method run(java.lang.Object)
,
which is called just like main during headless workbench invocation.
Fields inherited from interface org.eclipse.core.boot.IPlatformRunnable |
EXIT_OK, EXIT_RESTART |
Constructor Summary |
JMerger()
This creates an empty instances, an when used as a runnable. |
JMerger(JControlModel jControlModel,
org.eclipse.jdt.core.jdom.IDOMCompilationUnit sourceCompilationUnit,
org.eclipse.jdt.core.jdom.IDOMCompilationUnit targetCompilationUnit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdomFactory
protected org.eclipse.jdt.core.jdom.DOMFactory jdomFactory
jControlModel
protected JControlModel jControlModel
sourceCompilationUnit
protected org.eclipse.jdt.core.jdom.IDOMCompilationUnit sourceCompilationUnit
targetCompilationUnit
protected org.eclipse.jdt.core.jdom.IDOMCompilationUnit targetCompilationUnit
sourcePatternDictionary
protected JPatternDictionary sourcePatternDictionary
targetPatternDictionary
protected JPatternDictionary targetPatternDictionary
sourceToTargetMap
protected java.util.Map sourceToTargetMap
targetToSourceMap
protected java.util.Map targetToSourceMap
orderedSourceChildrenMap
protected java.util.Map orderedSourceChildrenMap
braceLine
protected static org.apache.xerces.impl.xpath.regex.RegularExpression braceLine
leadingTabs
protected static org.apache.xerces.impl.xpath.regex.RegularExpression leadingTabs
noArguments
protected static java.lang.Object[] noArguments
JMerger
public JMerger()
- This creates an empty instances, an when used as a runnable.
JMerger
public JMerger(JControlModel jControlModel,
org.eclipse.jdt.core.jdom.IDOMCompilationUnit sourceCompilationUnit,
org.eclipse.jdt.core.jdom.IDOMCompilationUnit targetCompilationUnit)
merge
public void merge()
remerge
public void remerge()
getControlModel
public JControlModel getControlModel()
setControlModel
public void setControlModel(JControlModel jControlModel)
getSourceCompilationUnit
public org.eclipse.jdt.core.jdom.IDOMCompilationUnit getSourceCompilationUnit()
setSourceCompilationUnit
public void setSourceCompilationUnit(org.eclipse.jdt.core.jdom.IDOMCompilationUnit sourceCompilationUnit)
getTargetCompilationUnit
public org.eclipse.jdt.core.jdom.IDOMCompilationUnit getTargetCompilationUnit()
setTargetCompilationUnit
public void setTargetCompilationUnit(org.eclipse.jdt.core.jdom.IDOMCompilationUnit targetCompilationUnit)
getSourcePatternDictionary
public JPatternDictionary getSourcePatternDictionary()
setSourcePatternDictionary
public void setSourcePatternDictionary(JPatternDictionary sourcePatternDictionary)
getTargetPatternDictionary
public JPatternDictionary getTargetPatternDictionary()
setTargetPatternDictionary
public void setTargetPatternDictionary(JPatternDictionary targetPatternDictionary)
getSourceToTargetMap
public java.util.Map getSourceToTargetMap()
setSourceToTargetMap
public void setSourceToTargetMap(java.util.Map sourceToTargetMap)
createCompilationUnitForURI
public org.eclipse.jdt.core.jdom.IDOMCompilationUnit createCompilationUnitForURI(java.lang.String uri)
- Create a JDOM from a URI.
createCompilationUnitForInputStream
public org.eclipse.jdt.core.jdom.IDOMCompilationUnit createCompilationUnitForInputStream(java.io.InputStream inputStream)
createCompilationUnitForContents
public org.eclipse.jdt.core.jdom.IDOMCompilationUnit createCompilationUnitForContents(java.lang.String contents)
- Create a JDOM from contents.
pullTargetCompilationUnit
protected void pullTargetCompilationUnit()
pullTargetPackage
protected void pullTargetPackage(org.eclipse.jdt.core.jdom.IDOMPackage targetPackage)
pullTargetImport
protected void pullTargetImport(org.eclipse.jdt.core.jdom.IDOMImport targetImport)
pullTargetType
protected void pullTargetType(org.eclipse.jdt.core.jdom.IDOMType targetType)
pullTargetInitializer
protected void pullTargetInitializer(org.eclipse.jdt.core.jdom.IDOMInitializer targetInitializer)
pullTargetField
protected void pullTargetField(org.eclipse.jdt.core.jdom.IDOMField targetField)
pullTargetMethod
protected void pullTargetMethod(org.eclipse.jdt.core.jdom.IDOMMethod targetMethod)
applyFormatRules
protected java.lang.String applyFormatRules(java.lang.String value)
applyPullRules
protected void applyPullRules(org.eclipse.jdt.core.jdom.IDOMNode sourceNode,
org.eclipse.jdt.core.jdom.IDOMNode targetNode)
pushSourceCompilationUnit
protected void pushSourceCompilationUnit()
pushSourcePackage
protected void pushSourcePackage(org.eclipse.jdt.core.jdom.IDOMPackage sourcePackage)
pushSourceImport
protected void pushSourceImport(org.eclipse.jdt.core.jdom.IDOMImport sourceImport)
pushSourceType
protected void pushSourceType(org.eclipse.jdt.core.jdom.IDOMType sourceType)
pushSourceInitializer
protected void pushSourceInitializer(org.eclipse.jdt.core.jdom.IDOMInitializer sourceInitializer)
pushSourceField
protected void pushSourceField(org.eclipse.jdt.core.jdom.IDOMField sourceField)
pushSourceMethod
protected void pushSourceMethod(org.eclipse.jdt.core.jdom.IDOMMethod sourceMethod)
applySortRules
public void applySortRules(org.eclipse.jdt.core.jdom.IDOMNode sourceNode)
sweepTargetCompilationUnit
protected void sweepTargetCompilationUnit()
applySweepRules
protected void applySweepRules(org.eclipse.jdt.core.jdom.IDOMNode targetNode)
sortTargetCompilationUnit
protected void sortTargetCompilationUnit()
insertClone
protected org.eclipse.jdt.core.jdom.IDOMNode insertClone(org.eclipse.jdt.core.jdom.IDOMNode sourceNode)
mapChildren
protected void mapChildren(org.eclipse.jdt.core.jdom.IDOMNode sourceNode,
org.eclipse.jdt.core.jdom.IDOMNode targetNode)
map
protected void map(org.eclipse.jdt.core.jdom.IDOMNode sourceNode,
org.eclipse.jdt.core.jdom.IDOMNode targetNode)
run
public java.lang.Object run(java.lang.Object object)
- This is called with the command line arguments of a headless workbench invocation.
- Specified by:
run
in interface org.eclipse.core.boot.IPlatformRunnable