com.aptana.ide.lexer.ascii
Class AsciiLexerBuilder

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.aptana.sax.ValidatingReader
          extended by com.aptana.ide.lexer.RegexLexerBuilderBase
              extended by com.aptana.ide.lexer.ascii.AsciiLexerBuilder
All Implemented Interfaces:
ILexerBuilder, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class AsciiLexerBuilder
extends RegexLexerBuilderBase

Author:
Kevin Lindsey

Field Summary
 
Fields inherited from class com.aptana.sax.ValidatingReader
_schema
 
Constructor Summary
AsciiLexerBuilder()
          AsciiLexerBuilder
AsciiLexerBuilder(IEnumerationMap tokenTypes)
          AsciiLexerBuilder - This is only used by internal tools
 
Method Summary
protected  ILexer createLexer()
          Create a new lexer.
protected  ITokenList createTokenList(java.lang.String language)
          Create a new token list for the specified language
 void load(java.io.InputStream in)
           
 void load(java.lang.String filename)
          Load the specified binary grammar file
 
Methods inherited from class com.aptana.ide.lexer.RegexLexerBuilderBase
addTokenList, buildLexer, characters, enterGroup, enterLexer, enterRegex, enterToken, exitRegex, getTokens, loadXML, loadXML
 
Methods inherited from class com.aptana.sax.ValidatingReader
endElement, read, read, startDocument, startElement
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsciiLexerBuilder

public AsciiLexerBuilder()
                  throws LexerInitializationException
AsciiLexerBuilder

Throws:
LexerInitializationException

AsciiLexerBuilder

public AsciiLexerBuilder(IEnumerationMap tokenTypes)
                  throws LexerInitializationException
AsciiLexerBuilder - This is only used by internal tools

Parameters:
tokenTypes -
Throws:
LexerInitializationException
Method Detail

createLexer

protected ILexer createLexer()
Description copied from class: RegexLexerBuilderBase
Create a new lexer. Sub-classes will need to override this method to create their own Lexer sub-classes

Specified by:
createLexer in class RegexLexerBuilderBase
Returns:
Returns a newly instantiated lexer
See Also:
RegexLexerBuilderBase.createLexer()

createTokenList

protected ITokenList createTokenList(java.lang.String language)
Description copied from class: RegexLexerBuilderBase
Create a new token list for the specified language

Specified by:
createTokenList in class RegexLexerBuilderBase
Returns:
ITokenList
See Also:
RegexLexerBuilderBase.createTokenList(java.lang.String)

load

public void load(java.lang.String filename)
          throws LexerException,
                 java.io.IOException
Load the specified binary grammar file

Parameters:
filename -
Throws:
LexerException
java.io.IOException

load

public void load(java.io.InputStream in)
          throws LexerException
Parameters:
in -
Throws:
LexerException