java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.expressions.Template.Literal
All Implemented Interfaces:
TypeCheck, Template.Part
Enclosing class:
Template

public static final class Template.Literal extends Object implements Template.Part
A static template value part.
  • Method Details

    • getValue

      public String getValue()
      Gets the value of this literal.
      Returns:
      the literal value.
    • accept

      public <T> T accept(TemplateVisitor<T> visitor)
      Specified by:
      accept in interface Template.Part
    • typeCheck

      public Type typeCheck(Scope<Type> scope)
      Description copied from interface: TypeCheck
      Checks whether the given types within a scope satisfy the constraints.
      Specified by:
      typeCheck in interface TypeCheck
      Parameters:
      scope - the scope to evaluate.
      Returns:
      the type validated by the scope check.
    • 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