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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract <T> T
accept
(RuleValueVisitor<T> visitor) static Rule.Builder
builder()
static Rule.Builder
builder
(FromSourceLocation sourceLocation) boolean
static Rule
Gets the source location of a value.int
hashCode()
toNode()
Converts a value to aNode
.toString()
protected abstract Type
typecheckValue
(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:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Returns:
- Returns the source location of the value.
-
getConditions
-
typeCheck
-
typecheckValue
-
getDocumentation
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
. -
hashCode
public int hashCode() -
equals
-
toString
-