org.aspectj.weaver.patterns
Class BasicTokenSource
java.lang.Object
org.aspectj.weaver.patterns.BasicTokenSource
- All Implemented Interfaces:
- ITokenSource
public class BasicTokenSource
- extends java.lang.Object
- implements ITokenSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicTokenSource
public BasicTokenSource(IToken[] tokens,
ISourceContext sourceContext)
getIndex
public int getIndex()
- Specified by:
getIndex
in interface ITokenSource
setIndex
public void setIndex(int newIndex)
- Specified by:
setIndex
in interface ITokenSource
next
public IToken next()
- Specified by:
next
in interface ITokenSource
peek
public IToken peek()
- Specified by:
peek
in interface ITokenSource
peek
public IToken peek(int offset)
- Specified by:
peek
in interface ITokenSource
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
makeTokenSource
public static ITokenSource makeTokenSource(java.lang.String input,
ISourceContext context)
getSourceContext
public ISourceContext getSourceContext()
- Specified by:
getSourceContext
in interface ITokenSource
setSourceContext
public void setSourceContext(ISourceContext context)