org.eclipse.xtext.parser.impl
Class PartialParsingHelper

java.lang.Object
  extended by org.eclipse.xtext.parser.impl.PartialParsingHelper
All Implemented Interfaces:
IPartialParsingHelper
Direct Known Subclasses:
CodetemplatesPartialParsingHelper

public class PartialParsingHelper
extends java.lang.Object
implements IPartialParsingHelper

Author:
Jan Köhnlein - Initial contribution and API, Sebastian Zarnekow

Constructor Summary
PartialParsingHelper()
           
 
Method Summary
 PartialParsingPointers calculatePartialParsingPointers(IParseResult previousParseResult, int offset, int replacedTextLength)
           
protected  void filterInvalidRootNodes(ICompositeNode oldRootNode, java.util.List<ICompositeNode> validReplaceRootNodes)
           
protected  IParseResult fullyReparse(IParser parser, IParseResult previousParseResult, ReplaceRegion replaceRegion)
           
 IReferableElementsUnloader getUnloader()
           
 java.lang.String insertChangeIntoReplaceRegion(ICompositeNode rootNode, ReplaceRegion region)
           
protected  boolean isActionNode(ICompositeNode node)
           
protected  boolean isInvalidLastChildNode(ICompositeNode candidate, INode lastChild)
           
protected  boolean isInvalidRootNode(ICompositeNode rootNode, ICompositeNode candidate)
           
protected  boolean nodeEnclosesRegion(ICompositeNode node, Range range)
           
 IParseResult reparse(IParser parser, IParseResult previousParseResult, ReplaceRegion replaceRegion)
           
 void setUnloader(IReferableElementsUnloader unloader)
           
 void unloadNode(INode node)
           
 void unloadSemanticObject(org.eclipse.emf.ecore.EObject object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialParsingHelper

public PartialParsingHelper()
Method Detail

reparse

public IParseResult reparse(IParser parser,
                            IParseResult previousParseResult,
                            ReplaceRegion replaceRegion)
Specified by:
reparse in interface IPartialParsingHelper

fullyReparse

protected IParseResult fullyReparse(IParser parser,
                                    IParseResult previousParseResult,
                                    ReplaceRegion replaceRegion)

unloadNode

public void unloadNode(INode node)

unloadSemanticObject

public void unloadSemanticObject(org.eclipse.emf.ecore.EObject object)

insertChangeIntoReplaceRegion

public java.lang.String insertChangeIntoReplaceRegion(ICompositeNode rootNode,
                                                      ReplaceRegion region)

calculatePartialParsingPointers

public PartialParsingPointers calculatePartialParsingPointers(IParseResult previousParseResult,
                                                              int offset,
                                                              int replacedTextLength)

filterInvalidRootNodes

protected void filterInvalidRootNodes(ICompositeNode oldRootNode,
                                      java.util.List<ICompositeNode> validReplaceRootNodes)

isInvalidRootNode

protected boolean isInvalidRootNode(ICompositeNode rootNode,
                                    ICompositeNode candidate)

isInvalidLastChildNode

protected boolean isInvalidLastChildNode(ICompositeNode candidate,
                                         INode lastChild)

nodeEnclosesRegion

protected boolean nodeEnclosesRegion(ICompositeNode node,
                                     Range range)

isActionNode

protected boolean isActionNode(ICompositeNode node)

setUnloader

public void setUnloader(IReferableElementsUnloader unloader)

getUnloader

public IReferableElementsUnloader getUnloader()