Class RuleEvaluator
- java.lang.Object
-
- software.amazon.awssdk.services.pricing.endpoints.internal.RuleEvaluator
-
- All Implemented Interfaces:
ExprVisitor<Value>
,FnVisitor<Value>
public class RuleEvaluator extends Object implements FnVisitor<Value>, ExprVisitor<Value>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.pricing.endpoints.internal.ExprVisitor
ExprVisitor.Default<R>
-
-
Constructor Summary
Constructors Constructor Description RuleEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Value
evaluateCondition(Condition condition)
Value
evaluateRuleset(EndpointRuleset ruleset, Map<Identifier,Value> input)
Value
generateEndpoint(EndpointResult endpoint)
Value
visitBoolEquals(BooleanEqualsFn fn)
Value
visitFn(Fn fn)
Value
visitGetAttr(GetAttr getAttr)
Value
visitIsSet(IsSet fn)
Value
visitIsValidHostLabel(IsValidHostLabel fn)
Value
visitIsVirtualHostLabelsS3Bucket(IsVirtualHostableS3Bucket fn)
Value
visitLiteral(Literal literal)
Value
visitNot(Not not)
Value
visitParseArn(ParseArn fn)
Value
visitParseUrl(ParseUrl parseUrl)
Value
visitPartition(PartitionFn fn)
Value
visitRef(Ref ref)
Value
visitStringEquals(StringEqualsFn fn)
Value
visitSubstring(Substring fn)
Value
visitUriEncode(UriEncodeFn fn)
-
-
-
Method Detail
-
evaluateRuleset
public Value evaluateRuleset(EndpointRuleset ruleset, Map<Identifier,Value> input)
-
visitLiteral
public Value visitLiteral(Literal literal)
- Specified by:
visitLiteral
in interfaceExprVisitor<Value>
-
visitRef
public Value visitRef(Ref ref)
- Specified by:
visitRef
in interfaceExprVisitor<Value>
-
visitFn
public Value visitFn(Fn fn)
- Specified by:
visitFn
in interfaceExprVisitor<Value>
-
visitPartition
public Value visitPartition(PartitionFn fn)
- Specified by:
visitPartition
in interfaceFnVisitor<Value>
-
visitParseArn
public Value visitParseArn(ParseArn fn)
- Specified by:
visitParseArn
in interfaceFnVisitor<Value>
-
visitIsValidHostLabel
public Value visitIsValidHostLabel(IsValidHostLabel fn)
- Specified by:
visitIsValidHostLabel
in interfaceFnVisitor<Value>
-
visitBoolEquals
public Value visitBoolEquals(BooleanEqualsFn fn)
- Specified by:
visitBoolEquals
in interfaceFnVisitor<Value>
-
visitStringEquals
public Value visitStringEquals(StringEqualsFn fn)
- Specified by:
visitStringEquals
in interfaceFnVisitor<Value>
-
visitIsSet
public Value visitIsSet(IsSet fn)
- Specified by:
visitIsSet
in interfaceFnVisitor<Value>
-
visitGetAttr
public Value visitGetAttr(GetAttr getAttr)
- Specified by:
visitGetAttr
in interfaceFnVisitor<Value>
-
visitParseUrl
public Value visitParseUrl(ParseUrl parseUrl)
- Specified by:
visitParseUrl
in interfaceFnVisitor<Value>
-
visitSubstring
public Value visitSubstring(Substring fn)
- Specified by:
visitSubstring
in interfaceFnVisitor<Value>
-
visitUriEncode
public Value visitUriEncode(UriEncodeFn fn)
- Specified by:
visitUriEncode
in interfaceFnVisitor<Value>
-
visitIsVirtualHostLabelsS3Bucket
public Value visitIsVirtualHostLabelsS3Bucket(IsVirtualHostableS3Bucket fn)
- Specified by:
visitIsVirtualHostLabelsS3Bucket
in interfaceFnVisitor<Value>
-
generateEndpoint
public Value generateEndpoint(EndpointResult endpoint)
-
-