Class ErrorRule
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.rule.Rule
software.amazon.smithy.rulesengine.language.syntax.rule.ErrorRule
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,TypeCheck
A rule-set rule that is used to indicate an error in evaluation.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.smithy.rulesengine.language.syntax.rule.Rule
Rule.Builder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(RuleValueVisitor<T> visitor) getError()
toNode()
Converts a value to aNode
.toString()
protected Type
typecheckValue
(Scope<Type> scope) Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.rule.Rule
builder, builder, equals, fromNode, getConditions, getDocumentation, getSourceLocation, hashCode, typeCheck
-
Constructor Details
-
ErrorRule
-
-
Method Details
-
accept
-
typecheckValue
- Specified by:
typecheckValue
in classRule
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
toString
-
getError
-