Class ExpressionTransform

java.lang.Object
com.netflix.spinnaker.kork.expressions.ExpressionTransform

public class ExpressionTransform extends Object
  • Constructor Details

    • ExpressionTransform

      public ExpressionTransform(org.springframework.expression.ParserContext parserContext, org.springframework.expression.ExpressionParser parser, Function<String,String> stringExpressionPreprocessor, Class<?>... typesToStringify)
  • Method Details

    • escapeSimpleExpression

      public static String escapeSimpleExpression(String expression)
      Helper to escape a simple expression string Used to extract a simple expression when parsing fails
      Parameters:
      expression - Expression to escape
      Returns:
      escaped expression string
    • transformMap

      public Map<String,Object> transformMap(Map<String,Object> source, org.springframework.expression.EvaluationContext evaluationContext, ExpressionEvaluationSummary summary)
      Traverses and attempts to evaluate expressions Failures can either be INFO (for a simple unresolved expression) or ERROR when an exception is thrown
      Parameters:
      source - Source object to apply SpEL transformations to
      evaluationContext - Context used during evaluation of source object
      summary - Summary of evaluation after all transformations are applied
      Returns:
      the transformed source object
    • transformList

      public List transformList(List source, org.springframework.expression.EvaluationContext evaluationContext, ExpressionEvaluationSummary summary, Map<String,Object> additionalContext)
    • transformString

      public String transformString(String source, org.springframework.expression.EvaluationContext evaluationContext, ExpressionEvaluationSummary summary)