Class AbstractBooleanExpressionTemplate
java.lang.Object
ch.andre601.expressionparser.templates.abstracted.AbstractBooleanExpressionTemplate
- All Implemented Interfaces:
ExpressionTemplate
public abstract class AbstractBooleanExpressionTemplate
extends Object
implements ExpressionTemplate
Abstract class implementing
This class converts the provided boolean value into proper
ExpressionTemplate.This class converts the provided boolean value into proper
ToStringExpression and ToDoubleExpression
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionToDoubleExpressionholding a double value with either 1, if boolean value is true, or 0.ToStringExpressionholding the boolean value as String.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.andre601.expressionparser.templates.ExpressionTemplate
returnBooleanExpression
-
Constructor Details
-
AbstractBooleanExpressionTemplate
public AbstractBooleanExpressionTemplate()
-
-
Method Details
-
returnDoubleExpression
ToDoubleExpressionholding a double value with either 1, if boolean value is true, or 0.- Specified by:
returnDoubleExpressionin interfaceExpressionTemplate- Returns:
- ToDoubleExpression holding a double value with either 1, if boolean value is true, or 0.
-
returnStringExpression
ToStringExpressionholding the boolean value as String.- Specified by:
returnStringExpressionin interfaceExpressionTemplate- Returns:
- ToStringExpression holding the boolean value as String.
-