com.aptana.ide.lexer
Class RegexToken

java.lang.Object
  extended by com.aptana.ide.lexer.Token
      extended by com.aptana.ide.lexer.RegexToken
All Implemented Interfaces:
IRegexToken, IToken
Direct Known Subclasses:
AsciiToken

public class RegexToken
extends Token
implements IRegexToken

Author:
Kevin Lindsey

Field Summary
 
Fields inherited from class com.aptana.ide.lexer.Token
defaultLexerGroup, defaultTokenCategory
 
Constructor Summary
RegexToken(ITokenList owningTokenList)
          Create a new instance of Token
 
Method Summary
 java.lang.String getSourceRegex()
          Get the regex string that describes the pattern of text this lexeme matches
 void setSourceRegex(java.lang.String sourceRegex)
          setSourceRegex
 java.lang.String toString()
           
 
Methods inherited from class com.aptana.ide.lexer.Token
getCategory, getCategoryIndex, getDisplayName, getIndex, getLanguage, getLexerGroup, getLexerGroupIndex, getNewLexerGroup, getNewLexerGroupIndex, getOwningTokenList, getType, getTypeIndex, isSealed, seal, setCategory, setCategoryIndex, setDisplayName, setIndex, setLexerGroup, setLexerGroupIndex, setNewLexerGroup, setNewLexerGroupIndex, setType, setTypeIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.aptana.ide.lexer.IToken
getCategory, getCategoryIndex, getDisplayName, getIndex, getLanguage, getLexerGroup, getLexerGroupIndex, getNewLexerGroup, getNewLexerGroupIndex, getType, getTypeIndex, isSealed, seal, setCategory, setCategoryIndex, setDisplayName, setIndex, setLexerGroup, setLexerGroupIndex, setNewLexerGroup, setNewLexerGroupIndex, setType, setTypeIndex
 

Constructor Detail

RegexToken

public RegexToken(ITokenList owningTokenList)
Create a new instance of Token

Parameters:
owningTokenList - The list that owns this token
Method Detail

getSourceRegex

public java.lang.String getSourceRegex()
Description copied from interface: IRegexToken
Get the regex string that describes the pattern of text this lexeme matches

Specified by:
getSourceRegex in interface IRegexToken
Returns:
The regex associated with this lexeme
See Also:
IRegexToken.getSourceRegex()

setSourceRegex

public void setSourceRegex(java.lang.String sourceRegex)
setSourceRegex

Specified by:
setSourceRegex in interface IRegexToken
Parameters:
sourceRegex -

toString

public java.lang.String toString()
Overrides:
toString in class Token
See Also:
com.aptana.ide.lexer.IToken#toString()