Top Fields Constructors Methods
org.aspectj.weaver.patterns

public Class BasicTokenSource

extends Object
implements ITokenSource
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.patterns.ITokenSource
Imports
java.util.ArrayList, .List, org.aspectj.weaver.BCException, .ISourceContext

Field Summary

Modifier and TypeField and Description
private int
private ISourceContext
private IToken[]

Constructor Summary

AccessConstructor and Description
public
BasicTokenSource(IToken[] tokens, ISourceContext sourceContext)

Method Summary

Modifier and TypeMethod and Description
public int
public ISourceContext
public boolean
private static String
makeString(char ch)

private static String
makeString(char ch, int count)

public static ITokenSource
public IToken
public IToken
public IToken
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

indexback to summary
private int index
sourceContextback to summary
private ISourceContext sourceContext
tokensback to summary
private IToken[] tokens

Constructor Detail

BasicTokenSourceback to summary
public BasicTokenSource(IToken[] tokens, ISourceContext sourceContext)

Method Detail

getIndexback to summary
public int getIndex()

Implements org.aspectj.weaver.patterns.ITokenSource.getIndex.

getSourceContextback to summary
public ISourceContext getSourceContext()

Implements org.aspectj.weaver.patterns.ITokenSource.getSourceContext.

hasMoreTokensback to summary
public boolean hasMoreTokens()

Implements org.aspectj.weaver.patterns.ITokenSource.hasMoreTokens.

Annotations
@Override
makeStringback to summary
private static String makeString(char ch)
makeStringback to summary
private static String makeString(char ch, int count)
makeTokenSourceback to summary
public static ITokenSource makeTokenSource(String input, ISourceContext context)
nextback to summary
public IToken next()

Implements org.aspectj.weaver.patterns.ITokenSource.next.

peekback to summary
public IToken peek()

Implements org.aspectj.weaver.patterns.ITokenSource.peek.

peekback to summary
public IToken peek(int offset)

Implements org.aspectj.weaver.patterns.ITokenSource.peek.

setIndexback to summary
public void setIndex(int newIndex)

Implements org.aspectj.weaver.patterns.ITokenSource.setIndex.

setSourceContextback to summary
public void setSourceContext(ISourceContext context)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.