public class SerializerTester
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ContextFinder |
contextFinder |
protected IFormatter |
formatter |
protected IGrammarAccess |
grammar |
protected com.google.inject.Provider<IHiddenTokenSequencer> |
hiddenTokenSequencerProvider |
protected ParseHelper<org.eclipse.emf.ecore.EObject> |
parseHelper |
protected com.google.inject.Provider<ISemanticSequencer> |
semanticSequencerProvider |
protected ISerializer |
serializer |
protected com.google.inject.Provider<ISyntacticSequencer> |
syntacticSequencerProvider |
protected ValidationTestHelper |
validationHelper |
Constructor and Description |
---|
SerializerTester() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertEqualWithEmfFormatter(org.eclipse.emf.ecore.EObject semanticObject,
org.eclipse.emf.ecore.EObject parsed) |
void |
assertSerializable(org.eclipse.emf.ecore.EObject semanticObject) |
void |
assertSerializable(java.lang.String semanticObject) |
void |
assertSerializeWithNodeModel(org.eclipse.emf.ecore.EObject semanticObject) |
void |
assertSerializeWithNodeModel(java.lang.String semanticModel) |
void |
assertSerializeWithoutNodeModel(org.eclipse.emf.ecore.EObject semanticObject) |
void |
assertSerializeWithoutNodeModel(java.lang.String semanticModel) |
protected java.util.List<Pair<org.eclipse.emf.ecore.EObject,ICompositeNode>> |
detachNodeModel(org.eclipse.emf.ecore.EObject eObject) |
protected org.eclipse.emf.ecore.EObject |
getContext(org.eclipse.emf.ecore.EObject semanticObject) |
protected java.lang.String |
getTextFromNodeModel(org.eclipse.emf.ecore.EObject semanticObject) |
protected void |
reattachNodes(java.util.List<Pair<org.eclipse.emf.ecore.EObject,ICompositeNode>> nodes) |
protected java.lang.String |
serialize(org.eclipse.emf.ecore.EObject semanticObject,
DelegatingSequenceAcceptor... acceptors) |
protected java.lang.String |
serializeWithNodeModel(org.eclipse.emf.ecore.EObject semanticObject) |
protected java.lang.String |
serializeWithoutNodeModel(org.eclipse.emf.ecore.EObject semanticObject) |
@Inject protected ContextFinder contextFinder
@Inject protected IFormatter formatter
@Inject protected IGrammarAccess grammar
@Inject protected com.google.inject.Provider<IHiddenTokenSequencer> hiddenTokenSequencerProvider
@Inject protected ParseHelper<org.eclipse.emf.ecore.EObject> parseHelper
@Inject protected com.google.inject.Provider<ISemanticSequencer> semanticSequencerProvider
@Inject protected ISerializer serializer
@Inject protected com.google.inject.Provider<ISyntacticSequencer> syntacticSequencerProvider
@Inject protected ValidationTestHelper validationHelper
protected void assertEqualWithEmfFormatter(org.eclipse.emf.ecore.EObject semanticObject, org.eclipse.emf.ecore.EObject parsed)
public void assertSerializable(org.eclipse.emf.ecore.EObject semanticObject)
public void assertSerializable(java.lang.String semanticObject)
public void assertSerializeWithNodeModel(org.eclipse.emf.ecore.EObject semanticObject)
public void assertSerializeWithNodeModel(java.lang.String semanticModel)
public void assertSerializeWithoutNodeModel(org.eclipse.emf.ecore.EObject semanticObject)
public void assertSerializeWithoutNodeModel(java.lang.String semanticModel)
protected java.util.List<Pair<org.eclipse.emf.ecore.EObject,ICompositeNode>> detachNodeModel(org.eclipse.emf.ecore.EObject eObject)
protected org.eclipse.emf.ecore.EObject getContext(org.eclipse.emf.ecore.EObject semanticObject)
protected java.lang.String getTextFromNodeModel(org.eclipse.emf.ecore.EObject semanticObject)
protected void reattachNodes(java.util.List<Pair<org.eclipse.emf.ecore.EObject,ICompositeNode>> nodes)
protected java.lang.String serialize(org.eclipse.emf.ecore.EObject semanticObject, DelegatingSequenceAcceptor... acceptors)
protected java.lang.String serializeWithNodeModel(org.eclipse.emf.ecore.EObject semanticObject)
protected java.lang.String serializeWithoutNodeModel(org.eclipse.emf.ecore.EObject semanticObject)