Class Rule
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.rule.Rule
- All Implemented Interfaces:
FromSourceLocation,ToNode,TypeCheck
- Direct Known Subclasses:
EndpointRule,ErrorRule,TreeRule
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <T> Taccept(RuleValueVisitor<T> visitor) static Rule.Builderbuilder()static Rule.Builderbuilder(FromSourceLocation sourceLocation) booleanstatic RuleGets the source location of a value.inthashCode()toNode()Converts a value to aNode.toString()protected abstract TypetypecheckValue(Scope<Type> scope)
-
Field Details
-
DOCUMENTATION
- See Also:
-
ENDPOINT
- See Also:
-
ERROR
- See Also:
-
TREE
- See Also:
-
RULES
- See Also:
-
TYPE
- See Also:
-
-
Constructor Details
-
Rule
-
-
Method Details
-
builder
-
builder
-
fromNode
-
accept
-
getSourceLocation
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
getConditions
-
typeCheck
-
typecheckValue
-
getDocumentation
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
hashCode
public int hashCode() -
equals
-
toString
-