Class ExpressionParser

java.lang.Object
software.amazon.awssdk.codegen.poet.rules2.ExpressionParser

public final class ExpressionParser extends Object
Utility methods for parsing endpoint rules expressions.
  • Method Details

    • parseRuleSetExpression

      public static RuleSetExpression parseRuleSetExpression(RuleModel model)
      Parses a rule set expression. Each expression consist of a list of conditions plus a body that can be either a tree node grouping more rule set expressions or a leaf node which is either an endpoint or an error.
    • parseStringValue

      public static RuleExpression parseStringValue(String value)
      Parses a string value. A string value can be parsed into:
      • A literal string value, e.g., "--x-s3"
      • A get attribute expression, e.g., "{url#scheme}"
      • A get indexed attribute expression, e.g., "resourceId[0]"
      • A string concatenation expression, e.g., "https://{Bucket}.op-{outpostId}.{url#authority}"
    • parsePropertiesExpression

      public static PropertiesExpression parsePropertiesExpression(com.fasterxml.jackson.jr.stree.JrsObject object)