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.
    • Method Detail

      • 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)