Class PseudoToken

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode
org.aspectj.ajdt.internal.compiler.ast.PseudoToken
All Implemented Interfaces:
TypeConstants, TypeIds, IHasPosition, IToken
Direct Known Subclasses:
IfPseudoToken

public class PseudoToken extends ASTNode implements IToken
  • Field Details

    • value

      public String value
    • isIdentifier

      public boolean isIdentifier
    • literalKind

      public String literalKind
    • parser

      public Parser parser
  • Constructor Details

    • PseudoToken

      public PseudoToken(Parser parser, String value, boolean isIdentifier)
      Constructor for PointcutDesignatorToken.
  • Method Details

    • toString

      public String toString(int tab)
    • 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
      See Also:
      IToken.getString()
    • 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
      See Also:
      IToken.isIdentifier()
    • getLiteralKind

      public String getLiteralKind()
      returns null if this isn't a literal
      Specified by:
      getLiteralKind 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
    • 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()
    • postParse

      public int postParse(TypeDeclaration typeDec, MethodDeclaration enclosingDec, int tokenNumber)
    • print

      public StringBuffer print(int indent, StringBuffer output)
      Specified by:
      print in class ASTNode