org.quenta.tedir.hadrian
Class HadrianReader

java.lang.Object
  extended by org.quenta.tedir.hadrian.HadrianReader

public class HadrianReader
extends Object


Constructor Summary
HadrianReader(ITokenType[] tokenTypes)
           
 
Method Summary
static HadrianReader getDefault()
           
static boolean isIdentifierPart(char c)
          Returns true if the specified character can occur as part of a hadrian specification identifier.
static boolean isIdentifierStart(char c)
          Returns true if the specified character is a legal hadrian specification identifier start character.
 GrammarModule readGrammar(File file)
           
 LiteralGrammarModule readGrammar(InputStream in, ITokenType[] tokens, IMessageMonitor monitor)
           
 GrammarModule readGrammar(org.quenta.tedir.antonius.doc.ITextDocument doc)
           
 GrammarModule readGrammar(org.quenta.tedir.antonius.doc.ITextDocument doc, IMessageMonitor monitor)
           
 HadrianParser readParser(org.quenta.tedir.antonius.doc.ICharBuffer in, IMessageMonitor monitor)
           
 HadrianParser readParser(org.quenta.tedir.antonius.doc.ITextDocument doc)
           
 HadrianParser readParser(org.quenta.tedir.antonius.doc.ITextDocument doc, IMessageMonitor monitor)
           
 HadrianParser readParser(Reader in)
           
 HadrianParser readParser(Reader in, IMessageMonitor monitor)
           
 List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ICharBuffer buf)
           
 List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ICharBuffer buf, IMessageMonitor monitor)
           
 List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ITextDocument doc)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadrianReader

public HadrianReader(ITokenType[] tokenTypes)
Method Detail

readGrammar

public GrammarModule readGrammar(File file)
                          throws FileNotFoundException
Throws:
FileNotFoundException

readGrammar

public GrammarModule readGrammar(org.quenta.tedir.antonius.doc.ITextDocument doc,
                                 IMessageMonitor monitor)

readGrammar

public GrammarModule readGrammar(org.quenta.tedir.antonius.doc.ITextDocument doc)

readGrammar

public LiteralGrammarModule readGrammar(InputStream in,
                                        ITokenType[] tokens,
                                        IMessageMonitor monitor)
                                 throws IOException
Throws:
IOException

readParser

public HadrianParser readParser(org.quenta.tedir.antonius.doc.ICharBuffer in,
                                IMessageMonitor monitor)

readParser

public HadrianParser readParser(Reader in,
                                IMessageMonitor monitor)
                         throws IOException
Throws:
IOException

readParser

public HadrianParser readParser(Reader in)
                         throws IOException
Throws:
IOException

readParser

public HadrianParser readParser(org.quenta.tedir.antonius.doc.ITextDocument doc)

readParser

public HadrianParser readParser(org.quenta.tedir.antonius.doc.ITextDocument doc,
                                IMessageMonitor monitor)

readTokens

public List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ICharBuffer buf,
                                               IMessageMonitor monitor)

readTokens

public List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ICharBuffer buf)

readTokens

public List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ITextDocument doc)

getDefault

public static HadrianReader getDefault()

isIdentifierStart

public static final boolean isIdentifierStart(char c)
Returns true if the specified character is a legal hadrian specification identifier start character. This can be used by plugins if they want to be sure they're consistent with the surrounding language.


isIdentifierPart

public static final boolean isIdentifierPart(char c)
Returns true if the specified character can occur as part of a hadrian specification identifier. This can be used by plugins if they want to be sure they're consistent with the surrounding language.