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.
  • Constructor Details

    • ConstantToStringExpression

      public ConstantToStringExpression(String value)
      Constructor for creating a new ConstantToStringExpression.
      Parameters:
      value - String value to store in the ConstantToStringExpression.
  • Method Details

    • evaluate

      public String evaluate()
      Method used to return a String value.
      Specified by:
      evaluate in interface ToStringExpression
      Returns:
      String value stored in this ConstantToStringExpression.