Class BooleanToken

java.lang.Object
ch.andre601.expressionparser.tokens.Token
ch.andre601.expressionparser.tokens.BooleanToken

public class BooleanToken extends Token
Token instance representing and holding a boolean value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Static BooleanToken instance holding the boolean value false.
    Static BooleanToken instance holding the boolean value true.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BooleanToken(boolean value)
    Constructor for creating a new BooleanToken.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the boolean value stored within this instance.

    Methods inherited from class ch.andre601.expressionparser.tokens.Token

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • TRUE

      public static BooleanToken TRUE
      Static BooleanToken instance holding the boolean value true.
    • FALSE

      public static BooleanToken FALSE
      Static BooleanToken instance holding the boolean value false.
  • Constructor Details

    • BooleanToken

      public BooleanToken(boolean value)
      Constructor for creating a new BooleanToken.
      Parameters:
      value - The boolean value to store in this BooleanToken.
  • Method Details

    • getValue

      public boolean getValue()
      Returns the boolean value stored within this instance.
      Returns:
      The boolean value stored within this instance.