Class IdentifierToken


  • public class IdentifierToken
    extends Token
    Represents an identifier (a variable name)
    • Constructor Detail

      • IdentifierToken

        public IdentifierToken​(String value)
    • Method Detail

      • getName

        public String getName()
        Returns the identifier's name
        Returns:
        the identifier's name
      • toString

        public String toString()
        Description copied from class: Token
        Represents the token by its description
        Overrides:
        toString in class Token
        Returns:
        the token's description
      • isConstant

        public boolean isConstant()
        Description copied from class: Token
        Returns true if this token represents a constant, false otherwise
        Specified by:
        isConstant in class Token
        Returns:
        true iff this Token represents a constant
      • isFunction

        public boolean isFunction()
        Description copied from class: Token
        Returns true if this token represents a function, false otherwise
        Specified by:
        isFunction in class Token
        Returns:
        true iff this Token represents a function