org.eclipse.xtext.parser
Class AbstractParser

java.lang.Object
  extended by org.eclipse.xtext.parser.AbstractParser
All Implemented Interfaces:
IParser
Direct Known Subclasses:
AbstractAntlrParser

public abstract class AbstractParser
extends java.lang.Object
implements IParser

Author:
Sven Efftinge - Initial contribution and API, Jan Koehnlein, Sebastian Zarnekow

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.parser.IParser
IParser.NullImpl
 
Constructor Summary
AbstractParser()
           
 
Method Summary
protected abstract  IParseResult doParse(java.lang.CharSequence sequence)
           
protected abstract  IParseResult doParse(java.io.Reader reader)
           
protected  IParseResult doReparse(IParseResult previousParseResult, ReplaceRegion replaceRegion)
           
protected  boolean isReparseSupported()
           
 IParseResult parse(java.io.Reader reader)
           
 IParseResult reparse(IParseResult previousResult, ReplaceRegion replaceRegion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.parser.IParser
parse, parse
 

Constructor Detail

AbstractParser

public AbstractParser()
Method Detail

isReparseSupported

protected boolean isReparseSupported()

parse

public final IParseResult parse(java.io.Reader reader)
Specified by:
parse in interface IParser

doParse

protected abstract IParseResult doParse(java.io.Reader reader)

doParse

protected abstract IParseResult doParse(java.lang.CharSequence sequence)

reparse

public final IParseResult reparse(IParseResult previousResult,
                                  ReplaceRegion replaceRegion)
Specified by:
reparse in interface IParser

doReparse

protected IParseResult doReparse(IParseResult previousParseResult,
                                 ReplaceRegion replaceRegion)