Class LookAheadPreservingNodeModelBuilder


  • public class LookAheadPreservingNodeModelBuilder
    extends org.eclipse.xtext.nodemodel.impl.NodeModelBuilder
    This is required together with the TokenSequencePreservingPartialParsingHelper. During partial parsing, the resulting token sequence is equal to the old sequence thus the lookahead can be losslessly transfered from the old node to the new node.
    Since:
    2.9
    Noreference:
    This method is not intended to be referenced by clients.
    Noextend:
    This class is not intended to be subclassed by clients.
    Nooverride:
    This method is not intended to be re-implemented or extended by clients.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void replaceAndTransferLookAhead​(org.eclipse.xtext.nodemodel.INode oldNode, org.eclipse.xtext.nodemodel.INode newRootNode)  
      • Methods inherited from class org.eclipse.xtext.nodemodel.impl.NodeModelBuilder

        addChild, associateWithSemanticElement, checkValidNewChild, compressAndReturnParent, initializeFirstChildInvariant, newCompositeNode, newCompositeNodeAsParentOf, newLeafNode, newRootNode, replace, replaceByRootNode, replaceChildren, replaceWithoutChildren, setCompleteContent, setForcedFirstGrammarElement, setLookAhead, setSyntaxError
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LookAheadPreservingNodeModelBuilder

        public LookAheadPreservingNodeModelBuilder()
    • Method Detail

      • replaceAndTransferLookAhead

        public void replaceAndTransferLookAhead​(org.eclipse.xtext.nodemodel.INode oldNode,
                                                org.eclipse.xtext.nodemodel.INode newRootNode)
        Overrides:
        replaceAndTransferLookAhead in class org.eclipse.xtext.nodemodel.impl.NodeModelBuilder