Class BooleanToken
java.lang.Object
ch.andre601.expressionparser.tokens.Token
ch.andre601.expressionparser.tokens.BooleanToken
Token instance
representing and holding a boolean value.-
Field Summary
Modifier and TypeFieldDescriptionstatic BooleanToken
Static BooleanToken instance holding the boolean value false.static BooleanToken
Static BooleanToken instance holding the boolean value true. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
Returns the boolean value stored within this instance.
-
Field Details
-
TRUE
Static BooleanToken instance holding the boolean value true. -
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.
-