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
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(RuleValueVisitor<T> visitor) Invoke theRuleValueVisitorfunctions for this Rule.booleangetError()Gets the error expression to return when reaching this rule.inthashCode()toString()protected TypetypecheckValue(Scope<Type> scope) protected voidwithValueNode(ObjectNode.Builder builder) Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.rule.Rule
builder, builder, fromNode, getConditions, getDocumentation, getSourceLocation, toNode, typeCheck, withConditions
-
Constructor Details
-
ErrorRule
-
-
Method Details
-
getError
Gets the error expression to return when reaching this rule.- Returns:
- the error expression.
-
accept
Description copied from class:RuleInvoke theRuleValueVisitorfunctions for this Rule. -
typecheckValue
- Specified by:
typecheckValuein classRule
-
withValueNode
- Specified by:
withValueNodein classRule
-
toString
-
equals
-
hashCode
public int hashCode()
-