Top Fields Constructors Methods
org.aspectj.weaver.patterns

public final Class BasicToken

extends Object
implements IToken
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.patterns.IToken, org.aspectj.weaver.IHasPosition

Field Summary

Modifier and TypeField and Description
private int
private boolean
private String
private int
private String

Constructor Summary

AccessConstructor and Description
private
BasicToken(String value, boolean isIdentifier, String literalKind, int start, int end)

Method Summary

Modifier and TypeMethod and Description
public int
getEnd()

Implements org.aspectj.weaver.IHasPosition.getEnd.

The ending index of this location in the character stream This points to the last character in this token.
public String
public String
getLiteralKind()

Implements org.aspectj.weaver.patterns.IToken.getLiteralKind.

Whether this should be treated as a literal value Kinds == "string", ???
public int
getStart()

Implements org.aspectj.weaver.IHasPosition.getStart.

The starting index of this location in the character stream.
public String
getString()

Implements org.aspectj.weaver.patterns.IToken.getString.

Returns the string value of this token.
public boolean
isIdentifier()

Implements org.aspectj.weaver.patterns.IToken.isIdentifier.

Whether this should be treated as a token or a generic identifier
public static BasicToken
makeIdentifier(String value, int start, int end)

public static BasicToken
makeLiteral(String value, String kind, int start, int end)

public static BasicToken
makeOperator(String value, int start, int end)

public Pointcut
maybeGetParsedPointcut()

Implements org.aspectj.weaver.patterns.IToken.maybeGetParsedPointcut.

If this token represents a pre-parsed Pointcut, then return it; otherwise returns null.
public String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

endback to summary
private int end
isIdentifierback to summary
private boolean isIdentifier
literalKindback to summary
private String literalKind
startback to summary
private int start
valueback to summary
private String value

Constructor Detail

BasicTokenback to summary
private BasicToken(String value, boolean isIdentifier, String literalKind, int start, int end)

Method Detail

getEndback to summary
public int getEnd()

Implements org.aspectj.weaver.IHasPosition.getEnd.

Doc from org.aspectj.weaver.IHasPosition.getEnd.

The ending index of this location in the character stream This points to the last character in this token. If a location truly had no contents, then start == end + 1. We don't recommend this.

getFileNameback to summary
public String getFileName()
getLiteralKindback to summary
public String getLiteralKind()

Implements org.aspectj.weaver.patterns.IToken.getLiteralKind.

Doc from org.aspectj.weaver.patterns.IToken.getLiteralKind.

Whether this should be treated as a literal value Kinds == "string", ??? returns null if this isn't a literal

getStartback to summary
public int getStart()

Implements org.aspectj.weaver.IHasPosition.getStart.

Doc from org.aspectj.weaver.IHasPosition.getStart.

The starting index of this location in the character stream.

getStringback to summary
public String getString()

Implements org.aspectj.weaver.patterns.IToken.getString.

Doc from org.aspectj.weaver.patterns.IToken.getString.

Returns the string value of this token. If isIdentifier is false, then this string must be intern'd so that == matching can be used. If isIdentifier is true, interning is not required.

isIdentifierback to summary
public boolean isIdentifier()

Implements org.aspectj.weaver.patterns.IToken.isIdentifier.

Doc from org.aspectj.weaver.patterns.IToken.isIdentifier.

Whether this should be treated as a token or a generic identifier

makeIdentifierback to summary
public static BasicToken makeIdentifier(String value, int start, int end)
makeLiteralback to summary
public static BasicToken makeLiteral(String value, String kind, int start, int end)
makeOperatorback to summary
public static BasicToken makeOperator(String value, int start, int end)
maybeGetParsedPointcutback to summary
public Pointcut maybeGetParsedPointcut()

Implements org.aspectj.weaver.patterns.IToken.maybeGetParsedPointcut.

Doc from org.aspectj.weaver.patterns.IToken.maybeGetParsedPointcut.

If this token represents a pre-parsed Pointcut, then return it; otherwise returns null. Needed for the implementation of 'if'

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.