|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.editors.unified.ChildOffsetMapper
public class ChildOffsetMapper
ChildOffsetMapper
| Constructor Summary | |
|---|---|
ChildOffsetMapper(IParentOffsetMapper parent)
ChildOffsetMapper |
|
| Method Summary | |
|---|---|
void |
calculateCurrentLexeme(int offset)
Calculates the index and lexeme that the given offset is within and caches it. |
void |
dispose()
Disposes the object. |
ICodeLocation |
findTarget(Lexeme lexeme)
findTarget |
Lexeme |
getCurrentLexeme()
Gets the cached current Lexeme based on the current offset of the document. |
int |
getCurrentLexemeIndex()
Gets the cached current Lexeme index based on the offset in the current document. |
FileService |
getFileService()
getFileService |
Lexeme |
getLexemeAtIndex(int index)
Gets the lexeme at the specified index. |
int |
getLexemeIndexFromDocumentOffset(int offset)
With a name this long you don't really need a comment. |
LexemeList |
getLexemeList()
getLexemeList |
Lexeme |
getNextLexeme()
Gets the next lexeme based on the current caret position, or null if there is no next lexeme. |
IParentOffsetMapper |
getParent()
getParent |
Lexeme |
getPreviousLexeme()
Gets the previous lexeme based on the current caret position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChildOffsetMapper(IParentOffsetMapper parent)
parent - | Method Detail |
|---|
public IParentOffsetMapper getParent()
IChildOffsetMapper
getParent in interface IChildOffsetMapperIChildOffsetMapper.getParent()public void calculateCurrentLexeme(int offset)
IOffsetMapper
calculateCurrentLexeme in interface IOffsetMapperIOffsetMapper.calculateCurrentLexeme(int)public FileService getFileService()
IChildOffsetMapper
getFileService in interface IChildOffsetMapperIChildOffsetMapper.getFileService()public Lexeme getCurrentLexeme()
IOffsetMapper
getCurrentLexeme in interface IOffsetMapperIOffsetMapper.getCurrentLexeme()public int getCurrentLexemeIndex()
IOffsetMapper
getCurrentLexemeIndex in interface IOffsetMapperIOffsetMapper.getCurrentLexemeIndex()public Lexeme getLexemeAtIndex(int index)
IOffsetMapper
getLexemeAtIndex in interface IOffsetMapperIOffsetMapper.getLexemeAtIndex(int)public int getLexemeIndexFromDocumentOffset(int offset)
IOffsetMapper
getLexemeIndexFromDocumentOffset in interface IOffsetMapperIOffsetMapper.getLexemeIndexFromDocumentOffset(int)public LexemeList getLexemeList()
IOffsetMapper
getLexemeList in interface IOffsetMapperIOffsetMapper.getLexemeList()public Lexeme getNextLexeme()
public Lexeme getPreviousLexeme()
public ICodeLocation findTarget(Lexeme lexeme)
IOffsetMapper
findTarget in interface IOffsetMapperIOffsetMapper.findTarget(com.aptana.ide.lexer.Lexeme)public void dispose()
IOffsetMapper
dispose in interface IOffsetMapperIOffsetMapper.dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||