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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionToBooleanExpressionholding the String value as boolean value usingBoolean.parseBoolean(String).ToDoubleExpressionholding the String value as double value using a NumberFormatter.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
returnStringExpression
-
Constructor Details
-
AbstractStringExpressionTemplate
public AbstractStringExpressionTemplate()
-
-
Method Details
-
returnBooleanExpression
ToBooleanExpressionholding the String value as boolean value usingBoolean.parseBoolean(String).- Specified by:
returnBooleanExpressionin interfaceExpressionTemplate- Returns:
- ToBooleanExpression holding the String value as boolean value using
Boolean.parseBoolean(String).
-
returnDoubleExpression
ToDoubleExpressionholding the String value as double value using a NumberFormatter.- Specified by:
returnDoubleExpressionin interfaceExpressionTemplate- Returns:
- ToDoubleExpression holding the String value as double value using a NumberFormatter.
-