Interface ToStringExpression
- All Superinterfaces:
Expression
- All Known Implementing Classes:
AbstractToStringExpression
,AbstractUnaryToStringExpression
,ToStringExpression.ConstantToStringExpression
Expression interface to turn an expression into a String.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Pre-made class that can be used through theliteral method
of the ToStringExpression interface. -
Method Summary
Modifier and TypeMethodDescriptionevaluate()
Method used to return a String value.static ToStringExpression
Creates a new ToStringExpression instance containing the provided String value.
-
Method Details
-
evaluate
String evaluate()Method used to return a String value.- Returns:
- String value.
-
literal
Creates a new ToStringExpression instance containing the provided String value.- Parameters:
value
- The String value for the ToStringExpression to hold.- Returns:
- New ToStringExpression instance.
- Throws:
IllegalArgumentException
- Should the provided String be null.
-