Class AbstractStringExpressionTemplate
java.lang.Object
ch.andre601.expressionparser.templates.abstracted.AbstractStringExpressionTemplate
- All Implemented Interfaces:
ExpressionTemplate
Abstract class implementing
This class converts the provided String into proper
ExpressionTemplate
.
This class converts the provided String into proper
ToBooleanExpression
and ToDoubleExpression
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionToBooleanExpression
holding the String value as boolean value usingBoolean.parseBoolean(String)
.ToDoubleExpression
holding the String value as double value using aNumberFormatter
.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
returnStringExpression
-
Constructor Details
-
AbstractStringExpressionTemplate
public AbstractStringExpressionTemplate()
-
-
Method Details
-
returnBooleanExpression
ToBooleanExpression
holding the String value as boolean value usingBoolean.parseBoolean(String)
.- Specified by:
returnBooleanExpression
in interfaceExpressionTemplate
- Returns:
- ToBooleanExpression holding the String value as boolean value using
Boolean.parseBoolean(String)
.
-
returnDoubleExpression
ToDoubleExpression
holding the String value as double value using aNumberFormatter
.- Specified by:
returnDoubleExpression
in interfaceExpressionTemplate
- Returns:
- ToDoubleExpression holding the String value as double value using a
NumberFormatter
.
-