Class ToStringExpression.ConstantToStringExpression
java.lang.Object
ch.andre601.expressionparser.expressions.ToStringExpression.ConstantToStringExpression
- All Implemented Interfaces:
Expression
,ToStringExpression
- Enclosing interface:
- ToStringExpression
public static class ToStringExpression.ConstantToStringExpression
extends Object
implements ToStringExpression
Pre-made class that can be used through the
literal method
of the ToStringExpression
interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.andre601.expressionparser.expressions.ToStringExpression
ToStringExpression.ConstantToStringExpression
-
Constructor Summary
ConstructorDescriptionConstantToStringExpression
(String value) Constructor for creating a new ConstantToStringExpression. -
Method Summary
-
Constructor Details
-
ConstantToStringExpression
Constructor for creating a new ConstantToStringExpression.- Parameters:
value
- String value to store in the ConstantToStringExpression.
-
-
Method Details
-
evaluate
Method used to return a String value.- Specified by:
evaluate
in interfaceToStringExpression
- Returns:
- String value stored in this ConstantToStringExpression.
-