Class IdentifierBaseToken


  • public class IdentifierBaseToken
    extends LeafBaseToken
    IdentifierBaseToken is a token that represents an identifier
    Author:
    djl 2009.03.14
    • Constructor Detail

      • IdentifierBaseToken

        public IdentifierBaseToken​(String s)
        Construct a new IdentifierBaseToken with the given value.
        Parameters:
        s - the string that represents an identifier
    • Method Detail

      • getValue

        public String getValue()
        Return the string representation of this LeafBaseToken.
        Specified by:
        getValue in class LeafBaseToken
        Returns:
        the string that represents the reciever
      • isIdentifier

        public boolean isIdentifier()
        Answer whether this token represents an identifier.
        Overrides:
        isIdentifier in class BaseToken
        Returns:
        the answer to the question "is this token an identifier?"