com.aptana.ide.lexer.ascii
Class AsciiTokenList

java.lang.Object
  extended by com.aptana.ide.lexer.TokenList
      extended by com.aptana.ide.lexer.RegexTokenList
          extended by com.aptana.ide.lexer.ascii.AsciiTokenList
All Implemented Interfaces:
IRegexTokenList, ITokenList

public class AsciiTokenList
extends RegexTokenList

Author:
Kevin Lindsey

Constructor Summary
AsciiTokenList(java.lang.String language)
          Create a new instance of TokenList
 
Method Summary
 IToken createToken()
          Create a new token
static ITokenList read(java.io.DataInput input)
          Read in a binary representation of this list from the specified input stream
 void seal()
          Build the regexes for each token in this list
 void write(java.io.DataOutput output)
          write
 
Methods inherited from class com.aptana.ide.lexer.RegexTokenList
getCurrentMatcher, getGroupMatcher, setCurrentGroup, setCurrentGroup, setGroupMatcher
 
Methods inherited from class com.aptana.ide.lexer.TokenList
add, add, add, add, get, getCategoryMap, getCurrentGroup, getGroup, getGroupCount, getGroupIndex, getGroupNames, getIgnoreSet, getLanguage, getTokenCategoriesByName, getTokenTypesByName, getTypeMap, internalAdd, isSealed, setCategoryMap, setGroupIndex, setIgnoreSet, setLanguage, setSealed, setTypeMap, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aptana.ide.lexer.ITokenList
add, get, getCurrentGroup, getGroupNames, getIgnoreSet, getLanguage, isSealed, setIgnoreSet, size
 

Constructor Detail

AsciiTokenList

public AsciiTokenList(java.lang.String language)
Create a new instance of TokenList

Parameters:
language -
Method Detail

createToken

public IToken createToken()
Description copied from interface: ITokenList
Create a new token

Specified by:
createToken in interface ITokenList
Overrides:
createToken in class TokenList
Returns:
IToken
See Also:
ITokenList.createToken()

seal

public void seal()
          throws LexerException
Description copied from interface: ITokenList
Build the regexes for each token in this list

Specified by:
seal in interface ITokenList
Overrides:
seal in class TokenList
Throws:
LexerException
See Also:
ITokenList.seal()

read

public static ITokenList read(java.io.DataInput input)
                       throws java.io.IOException,
                              LexerException
Read in a binary representation of this list from the specified input stream

Parameters:
input - The stream to read from
Returns:
TokenList
Throws:
java.io.IOException
LexerException

write

public void write(java.io.DataOutput output)
           throws java.io.IOException
write

Parameters:
output -
Throws:
java.io.IOException