org.meta_environment.eclipse.tokens
Class TokenLocator
java.lang.Object
org.meta_environment.eclipse.tokens.TokenLocator
- All Implemented Interfaces:
- org.eclipse.imp.language.ILanguageService, org.eclipse.imp.parser.ISourcePositionLocator
public class TokenLocator
- extends java.lang.Object
- implements org.eclipse.imp.parser.ISourcePositionLocator, org.eclipse.imp.language.ILanguageService
Method Summary |
java.lang.Object |
findNode(java.lang.Object ast,
int offset)
|
java.lang.Object |
findNode(java.lang.Object ast,
int startOffset,
int endOffset)
|
int |
getEndOffset(java.lang.Object node)
|
int |
getLength(java.lang.Object node)
|
org.eclipse.core.runtime.IPath |
getPath(java.lang.Object node)
|
int |
getStartOffset(java.lang.Object node)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenLocator
public TokenLocator()
findNode
public java.lang.Object findNode(java.lang.Object ast,
int offset)
- Specified by:
findNode
in interface org.eclipse.imp.parser.ISourcePositionLocator
findNode
public java.lang.Object findNode(java.lang.Object ast,
int startOffset,
int endOffset)
- Specified by:
findNode
in interface org.eclipse.imp.parser.ISourcePositionLocator
getEndOffset
public int getEndOffset(java.lang.Object node)
- Specified by:
getEndOffset
in interface org.eclipse.imp.parser.ISourcePositionLocator
getLength
public int getLength(java.lang.Object node)
- Specified by:
getLength
in interface org.eclipse.imp.parser.ISourcePositionLocator
getPath
public org.eclipse.core.runtime.IPath getPath(java.lang.Object node)
- Specified by:
getPath
in interface org.eclipse.imp.parser.ISourcePositionLocator
getStartOffset
public int getStartOffset(java.lang.Object node)
- Specified by:
getStartOffset
in interface org.eclipse.imp.parser.ISourcePositionLocator