Class TreeMapper
java.lang.Object
software.amazon.smithy.rulesengine.logic.cfg.TreeMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargument(LibraryFunction fn, int position, Expression argument) conditions(Rule rule, List<Condition> conditions) endpointRuleSet(EndpointRuleSet ruleSet) error(ErrorRule er, Expression e) expression(Expression expression) static TreeMappernewReferenceReplacingMapper(Map<String, Expression> replacements) Creates a mapper that replaces specific references.recordLiteral(RecordLiteral record) result(Rule rule, Condition condition, Identifier result) tupleLiteral(TupleLiteral tuple)
-
Constructor Details
-
TreeMapper
public TreeMapper()
-
-
Method Details
-
newReferenceReplacingMapper
Creates a mapper that replaces specific references.- Parameters:
replacements- map of variable names to replacement expressions- Returns:
- a mapper that performs the replacements
-
endpointRuleSet
-
rule
-
treeRule
-
rules
-
conditions
-
condition
-
result
-
endpointRule
-
errorRule
-
error
-
libraryFunction
-
argument
-
expression
-
reference
-
literal
-
tupleLiteral
-
recordLiteral
-
stringLiteral
-
endpoint
-