Class OperatorBaseToken


public class OperatorBaseToken extends LeafBaseToken
OperatorBaseToken is a token that represents a known operator.
Author:
djl 2009.03.14
  • Constructor Details

    • OperatorBaseToken

      public OperatorBaseToken(String s)
      Construct a new OperatorBaseToken with the given operator value.
      Parameters:
      s - the string that represents an operator
  • Method Details

    • getValue

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

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