Interface IToken

All Superinterfaces:
IHasPosition
All Known Implementing Classes:
BasicToken, IfPseudoToken, PseudoToken

public interface IToken extends IHasPosition
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IToken
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Whether this should be treated as a literal value Kinds == "string", ??? returns null if this isn't a literal
    Returns the string value of this token.
    boolean
    Whether this should be treated as a token or a generic identifier
    If this token represents a pre-parsed Pointcut, then return it; otherwise returns null.

    Methods inherited from interface IHasPosition

    getEnd, getStart
    Modifier and Type
    Method
    Description
    int
    The ending index of this location in the character stream This points to the last character in this token.
    int
    The starting index of this location in the character stream.
  • Field Details

    • EOF

      static final IToken EOF
  • Method Details

    • getString

      String 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.
    • isIdentifier

      boolean isIdentifier()
      Whether this should be treated as a token or a generic identifier
    • getLiteralKind

      String getLiteralKind()
      Whether this should be treated as a literal value Kinds == "string", ??? returns null if this isn't a literal
    • maybeGetParsedPointcut

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