com.aptana.ide.editor.css.lexing
Class CSSTokenList

java.lang.Object
  extended by com.aptana.ide.lexer.TokenList
      extended by com.aptana.ide.lexer.codebased.CodeBasedTokenList
          extended by com.aptana.ide.editor.css.lexing.CSSTokenList
All Implemented Interfaces:
ICodeBasedTokenList, ITokenList

public class CSSTokenList
extends CodeBasedTokenList

Author:
Kevin Lindsey

Field Summary
static java.lang.String DEFAULT_GROUP
          DEFAULT_GROUP
static java.lang.String ERROR_GROUP
          ERROR_GROUP
 
Fields inherited from class com.aptana.ide.lexer.codebased.CodeBasedTokenList
currentOffset, eofOffset, lastMatchedTokenIndex, source
 
Constructor Summary
CSSTokenList()
          CSSTokenList
 
Method Summary
protected  void addKeywords()
          addKeywords
protected  void addLiterals()
          addLiterals
protected  void addPunctuators()
          addPunctuators
protected  void addWhitespace()
          addWhitespace
 Range find(char[] source, int startingPosition, int eofOffset)
          find
 int match(char[] source, int startingPosition, int eofOffset)
          match
 void setEnumerationMaps()
          setEnumerationMaps
 
Methods inherited from class com.aptana.ide.lexer.codebased.CodeBasedTokenList
addDelimiter, addDelimiters, addKeyword, addKeyword, addLiteral, addLiteral, addPunctuator, addSymbol, addSymbol, addSymbol, addWhitespace, createToken, getLastMatchedTokenIndex, getSymbolToken, getSymbolTokenIndex, getSymbolTokenIndex, getSymbolTokenIndex, hasSymbol, initState, isHexCharacter, substringMatch, substringMatch, substringMatchAndAdvance
 
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, seal, setCategoryMap, setCurrentGroup, setCurrentGroup, 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, seal, setCurrentGroup, setCurrentGroup, setIgnoreSet, size
 

Field Detail

DEFAULT_GROUP

public static final java.lang.String DEFAULT_GROUP
DEFAULT_GROUP

See Also:
Constant Field Values

ERROR_GROUP

public static final java.lang.String ERROR_GROUP
ERROR_GROUP

See Also:
Constant Field Values
Constructor Detail

CSSTokenList

public CSSTokenList()
CSSTokenList

Method Detail

addKeywords

protected void addKeywords()
Description copied from class: CodeBasedTokenList
addKeywords

Overrides:
addKeywords in class CodeBasedTokenList
See Also:
CodeBasedTokenList.addKeywords()

addLiterals

protected void addLiterals()
Description copied from class: CodeBasedTokenList
addLiterals

Overrides:
addLiterals in class CodeBasedTokenList
See Also:
CodeBasedTokenList.addLiterals()

addPunctuators

protected void addPunctuators()
Description copied from class: CodeBasedTokenList
addPunctuators

Overrides:
addPunctuators in class CodeBasedTokenList
See Also:
CodeBasedTokenList.addPunctuators()

addWhitespace

protected void addWhitespace()
Description copied from class: CodeBasedTokenList
addWhitespace

Overrides:
addWhitespace in class CodeBasedTokenList
See Also:
CodeBasedTokenList.addWhitespace()

match

public int match(char[] source,
                 int startingPosition,
                 int eofOffset)
Description copied from interface: ICodeBasedTokenList
match

Specified by:
match in interface ICodeBasedTokenList
Specified by:
match in class CodeBasedTokenList
Returns:
The final position of the failed or successful match
See Also:
CodeBasedTokenList.match(char[], int, int)

find

public Range find(char[] source,
                  int startingPosition,
                  int eofOffset)
Description copied from interface: ICodeBasedTokenList
find

Returns:
Range
See Also:
ICodeBasedTokenList.find(char[], int, int)

setEnumerationMaps

public void setEnumerationMaps()
Description copied from class: CodeBasedTokenList
setEnumerationMaps

Specified by:
setEnumerationMaps in class CodeBasedTokenList
See Also:
CodeBasedTokenList.setEnumerationMaps()