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 SummaryAll 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- 
getValuepublic java.lang.String getValue() Gets the value of this literal.- Returns:
- the literal value.
 
 - 
acceptpublic <T> T accept(TemplateVisitor<T> visitor) - Specified by:
- acceptin interface- Template.Part
 
 - 
typeCheckpublic Type typeCheck(Scope<Type> scope) Description copied from interface:TypeCheckChecks whether the given types within a scope satisfy the constraints.
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-