|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.lexer.AbstractLexer
com.aptana.ide.lexer.matcher.MatcherLexer
public class MatcherLexer
| Field Summary |
|---|
| Fields inherited from class com.aptana.ide.lexer.AbstractLexer |
|---|
currentOffset, lastMatchedTokenIndex |
| Constructor Summary | |
|---|---|
MatcherLexer()
|
|
| Method Summary | |
|---|---|
Range |
find(java.lang.String groupName)
Use the currently active language and group to locate the first position that matches that group. |
char |
getCharacterAt(int offset)
Return the character at the given offset |
java.lang.String |
getSource()
Get the text being processed by this lexer |
protected char[] |
getSourceCharacters()
Get the character array for the current source |
int |
getSourceLength()
Return the number of characters in this lexer's source code |
char[] |
getSourceUnsafe()
TODO Remove this method later. |
protected int |
match()
match |
void |
setSource(char[] value)
Set the text to be processed by this lexer |
| Methods inherited from class com.aptana.ide.lexer.AbstractLexer |
|---|
addLanguage, createLexeme, getCachedLexeme, getCurrentOffset, getCurrentTokenList, getEOFOffset, getGroup, getLanguage, getLanguages, getNextLexeme, getTokenList, isEOS, seal, setCurrentOffset, setEOFOffset, setGroup, setIgnoreSet, setLanguage, setLanguageAndGroup, setLexemeCache, setLexerState, setLexerState, setSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatcherLexer()
| Method Detail |
|---|
public Range find(java.lang.String groupName)
throws LexerException
ILexer
find in interface ILexerfind in class AbstractLexergroupName - The current language's group name that contains the patterns to find
LexerExceptionILexer.find(java.lang.String)public char getCharacterAt(int offset)
ILexer
getCharacterAt in interface ILexergetCharacterAt in class AbstractLexeroffset - The offset within the source
ILexer.getCharacterAt(int)public java.lang.String getSource()
ILexer
getSource in interface ILexergetSource in class AbstractLexerILexer.getSource()protected char[] getSourceCharacters()
AbstractLexer
getSourceCharacters in class AbstractLexerAbstractLexer.getSourceCharacters()public int getSourceLength()
ILexer
getSourceLength in interface ILexergetSourceLength in class AbstractLexerILexer.getSourceLength()protected int match()
AbstractLexer
match in class AbstractLexerAbstractLexer.match()public void setSource(char[] value)
ILexer
setSource in interface ILexersetSource in class AbstractLexervalue - The new source textILexer.setSource(char[])public char[] getSourceUnsafe()
ILexer
ILexer.getSourceUnsafe()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||