Class StringLiteral
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
software.amazon.smithy.rulesengine.language.syntax.expressions.literal.Literal
software.amazon.smithy.rulesengine.language.syntax.expressions.literal.StringLiteral
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,TypeCheck
,ToCondition
,ToExpression
A string literal value, containing a template.
-
Method Summary
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.literal.Literal
accept, asBooleanLiteral, asIntegerLiteral, asRecordLiteral, asTupleLiteral, booleanLiteral, evaluate, fromNode, integerLiteral, recordLiteral, stringLiteral, tupleLiteral, typeCheckLocal
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
getLiteral, getReference, getReference, getReference, getReferences, getSourceLocation, of, of, of, parseShortform, toExpression, type, typeCheck
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
availableSince, booleanEqual, getAttr, getAttr, isSet, isValidHostLabel, not, parseUrl, stringEqual, substring, template
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.smithy.rulesengine.language.syntax.ToCondition
toCondition, toCondition, toConditionBuilder
-
Method Details
-
value
Gets the template for this literal value.- Returns:
- the literal's value template.
-
accept
-
asStringLiteral
- Overrides:
asStringLiteral
in classLiteral
-
hashCode
public int hashCode()- Specified by:
hashCode
in classExpression
-
equals
- Specified by:
equals
in classExpression
-
toString
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
.- Returns:
- Returns the creates Node.
-
calculateReferences
Description copied from class:Expression
Computes the references of an expression.- Overrides:
calculateReferences
in classExpression
- Returns:
- the computed references.
-