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
-
Method Summary
Modifier and TypeMethodDescriptionToDoubleExpression
holding a double value with either 1, if boolean value is true, or 0.ToStringExpression
holding the boolean value as String.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.andre601.expressionparser.templates.ExpressionTemplate
returnBooleanExpression
-
Constructor Details
-
AbstractBooleanExpressionTemplate
public AbstractBooleanExpressionTemplate()
-
-
Method Details
-
returnDoubleExpression
ToDoubleExpression
holding a double value with either 1, if boolean value is true, or 0.- Specified by:
returnDoubleExpression
in interfaceExpressionTemplate
- Returns:
- ToDoubleExpression holding a double value with either 1, if boolean value is true, or 0.
-
returnStringExpression
ToStringExpression
holding the boolean value as String.- Specified by:
returnStringExpression
in interfaceExpressionTemplate
- Returns:
- ToStringExpression holding the boolean value as String.
-