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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classPre-made class that can be used through the literal method of the ToStringExpression interface. -
Method Summary
Modifier and TypeMethodDescriptionevaluate()Method used to return a String value.static ToStringExpressionCreates a new ToStringExpression instance containing the provided String value.
-
Method Details
-
evaluate
-
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.
-