Class BasicToken

java.lang.Object
org.aspectj.weaver.patterns.BasicToken
All Implemented Interfaces:
IHasPosition, IToken

public final class BasicToken extends Object implements IToken
  • Method Details

    • makeOperator

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

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

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

      public int getStart()
      Description copied from interface: IHasPosition
      The starting index of this location in the character stream.
      Specified by:
      getStart in interface IHasPosition
    • getEnd

      public int getEnd()
      Description copied from interface: IHasPosition
      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.
      Specified by:
      getEnd in interface IHasPosition
    • getFileName

      public String getFileName()
    • getString

      public String getString()
      Description copied from interface: IToken
      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.
      Specified by:
      getString in interface IToken
    • isIdentifier

      public boolean isIdentifier()
      Description copied from interface: IToken
      Whether this should be treated as a token or a generic identifier
      Specified by:
      isIdentifier in interface IToken
    • maybeGetParsedPointcut

      public Pointcut maybeGetParsedPointcut()
      Description copied from interface: IToken
      If this token represents a pre-parsed Pointcut, then return it; otherwise returns null. Needed for the implementation of 'if'
      Specified by:
      maybeGetParsedPointcut in interface IToken
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLiteralKind

      public String getLiteralKind()
      Description copied from interface: IToken
      Whether this should be treated as a literal value Kinds == "string", ??? returns null if this isn't a literal
      Specified by:
      getLiteralKind in interface IToken