Class Template.Literal
- 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 java.lang.Object implements Template.Part
A static template value part.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(TemplateVisitor<T> visitor)booleanequals(java.lang.Object o)java.lang.StringgetValue()Gets the value of this literal.inthashCode()java.lang.StringtoString()TypetypeCheck(Scope<Type> scope)Checks whether the given types within a scope satisfy the constraints.
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Gets the value of this literal.- Returns:
- the literal value.
-
accept
public <T> T accept(TemplateVisitor<T> visitor)
- Specified by:
acceptin interfaceTemplate.Part
-
typeCheck
public Type typeCheck(Scope<Type> scope)
Description copied from interface:TypeCheckChecks whether the given types within a scope satisfy the constraints.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-