Interface ToStringExpression

All Superinterfaces:
Expression
All Known Implementing Classes:
AbstractToStringExpression, AbstractUnaryToStringExpression, ToStringExpression.ConstantToStringExpression

public interface ToStringExpression extends Expression
Expression interface to turn an expression into a String.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Pre-made class that can be used through the literal method of the ToStringExpression interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Method used to return a String value.
    literal(String value)
    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

      static ToStringExpression literal(String value)
      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.