java.lang.Object
software.amazon.smithy.rulesengine.language.evaluation.value.Value
software.amazon.smithy.rulesengine.language.evaluation.value.StringValue
All Implemented Interfaces:
FromSourceLocation, ToNode

public final class StringValue extends Value
A string value.
  • Method Details

    • getValue

      public String getValue()
      Gets the value of the string.
      Returns:
      the value of the string.
    • getType

      public Type getType()
      Specified by:
      getType in class Value
    • expectStringValue

      public StringValue expectStringValue()
      Description copied from class: Value
      Returns the current value as an ArrayValue, throwing RuntimeException when the value is the wrong type.
      Overrides:
      expectStringValue in class Value
      Returns:
      returns a string value.
    • toNode

      public Node toNode()
      Description copied from interface: ToNode
      Converts a value to a Node.
      Returns:
      Returns the creates Node.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object