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> T
accept(TemplateVisitor<T> visitor)
boolean
equals(java.lang.Object o)
java.lang.String
getValue()
Gets the value of this literal.int
hashCode()
java.lang.String
toString()
Type
typeCheck(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:
accept
in interfaceTemplate.Part
-
typeCheck
public Type typeCheck(Scope<Type> scope)
Description copied from interface:TypeCheck
Checks whether the given types within a scope satisfy the constraints.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-