Class Formatter2Fragment2
- java.lang.Object
-
- org.eclipse.xtext.xtext.generator.AbstractXtextGeneratorFragment
-
- org.eclipse.xtext.xtext.generator.AbstractStubGeneratingFragment
-
- org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2
-
- All Implemented Interfaces:
IGuiceAwareGeneratorComponent
,IXtextGeneratorFragment
public class Formatter2Fragment2 extends AbstractStubGeneratingFragment
-
-
Constructor Summary
Constructors Constructor Description Formatter2Fragment2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGenerateStubFile()
protected JavaFileAccess
doGetStubFile()
void
generate()
protected org.eclipse.xtend2.lib.StringConcatenationClient
generateFormatMethod(org.eclipse.emf.ecore.EClass clazz, java.util.Collection<org.eclipse.emf.ecore.EReference> containmentRefs, boolean isOverriding)
protected org.eclipse.xtend2.lib.StringConcatenationClient
generateJavaFormatMethod(org.eclipse.emf.ecore.EClass clazz, java.util.Collection<org.eclipse.emf.ecore.EReference> containmentRefs, boolean isOverriding)
protected TypeReference
getFormatter2Stub(org.eclipse.xtext.Grammar grammar)
protected java.lang.String
getGetAccessor(org.eclipse.emf.ecore.EStructuralFeature feature)
protected java.lang.String
getGetAccessorType(org.eclipse.emf.ecore.EStructuralFeature feature)
protected void
getInheritedContainmentReferences(org.eclipse.xtext.Grammar grammar, com.google.common.collect.Multimap<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> type2ref, java.util.Set<org.eclipse.xtext.Grammar> visitedGrammars)
protected void
getLocallyAssignedContainmentReferences(org.eclipse.xtext.Grammar grammar, com.google.common.collect.Multimap<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> type2ref)
protected TypeReference
getStubSuperClass()
protected java.lang.String
toVarName(org.eclipse.emf.ecore.ENamedElement element, java.lang.String... reservedNames)
-
Methods inherited from class org.eclipse.xtext.xtext.generator.AbstractStubGeneratingFragment
getGenerateStub, isGenerateStub, isGenerateXtendStub, setGenerateStub, setGenerateXtendStub
-
Methods inherited from class org.eclipse.xtext.xtext.generator.AbstractXtextGeneratorFragment
checkConfiguration, getGrammar, getLanguage, getProjectConfig, initialize
-
-
-
-
Method Detail
-
getFormatter2Stub
protected TypeReference getFormatter2Stub(org.eclipse.xtext.Grammar grammar)
-
generate
public void generate()
-
doGenerateStubFile
protected void doGenerateStubFile()
-
doGetStubFile
protected JavaFileAccess doGetStubFile()
-
generateFormatMethod
protected org.eclipse.xtend2.lib.StringConcatenationClient generateFormatMethod(org.eclipse.emf.ecore.EClass clazz, java.util.Collection<org.eclipse.emf.ecore.EReference> containmentRefs, boolean isOverriding)
-
generateJavaFormatMethod
protected org.eclipse.xtend2.lib.StringConcatenationClient generateJavaFormatMethod(org.eclipse.emf.ecore.EClass clazz, java.util.Collection<org.eclipse.emf.ecore.EReference> containmentRefs, boolean isOverriding)
-
getLocallyAssignedContainmentReferences
protected void getLocallyAssignedContainmentReferences(org.eclipse.xtext.Grammar grammar, com.google.common.collect.Multimap<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> type2ref)
-
getInheritedContainmentReferences
protected void getInheritedContainmentReferences(org.eclipse.xtext.Grammar grammar, com.google.common.collect.Multimap<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EReference> type2ref, java.util.Set<org.eclipse.xtext.Grammar> visitedGrammars)
-
getStubSuperClass
protected TypeReference getStubSuperClass()
-
toVarName
protected java.lang.String toVarName(org.eclipse.emf.ecore.ENamedElement element, java.lang.String... reservedNames)
-
getGetAccessor
protected java.lang.String getGetAccessor(org.eclipse.emf.ecore.EStructuralFeature feature)
-
getGetAccessorType
protected java.lang.String getGetAccessorType(org.eclipse.emf.ecore.EStructuralFeature feature)
-
-