org.eclipse.xtext.parsetree.reconstr
Interface ITokenSerializer.ICrossReferenceSerializer

All Superinterfaces:
ITokenSerializer
All Known Implementing Classes:
CrossReferenceSerializer, XtextCrossReferenceSerializer
Enclosing interface:
ITokenSerializer

public static interface ITokenSerializer.ICrossReferenceSerializer
extends ITokenSerializer

In the process of serializing a model to a DSL, references to model elements need to be turned into string representations which identify the targeted model element. Implementations of this interface compute this string representation. Implementations must be synchronous with the DSL's parser implementation. Implementations might introduce some kind of scoping.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.parsetree.reconstr.ITokenSerializer
ITokenSerializer.ICrossReferenceSerializer, ITokenSerializer.IEnumLiteralSerializer, ITokenSerializer.IErrorAcceptor, ITokenSerializer.IKeywordSerializer, ITokenSerializer.IValueSerializer
 
Field Summary
 
Fields inherited from interface org.eclipse.xtext.parsetree.reconstr.ITokenSerializer
KEEP_VALUE_FROM_NODE_MODEL
 
Method Summary
 boolean equalsOrReplacesNode(org.eclipse.emf.ecore.EObject context, CrossReference crossref, org.eclipse.emf.ecore.EObject target, INode node)
           
 boolean isValid(org.eclipse.emf.ecore.EObject context, CrossReference crossref, org.eclipse.emf.ecore.EObject target, ITokenSerializer.IErrorAcceptor errorAcceptor)
           
 java.lang.String serializeCrossRef(org.eclipse.emf.ecore.EObject context, CrossReference crossref, org.eclipse.emf.ecore.EObject target, INode node)
           
 

Method Detail

isValid

boolean isValid(org.eclipse.emf.ecore.EObject context,
                CrossReference crossref,
                org.eclipse.emf.ecore.EObject target,
                ITokenSerializer.IErrorAcceptor errorAcceptor)

equalsOrReplacesNode

boolean equalsOrReplacesNode(org.eclipse.emf.ecore.EObject context,
                             CrossReference crossref,
                             org.eclipse.emf.ecore.EObject target,
                             INode node)

serializeCrossRef

java.lang.String serializeCrossRef(org.eclipse.emf.ecore.EObject context,
                                   CrossReference crossref,
                                   org.eclipse.emf.ecore.EObject target,
                                   INode node)