java.lang.Object
org.apache.sling.scripting.sightly.impl.compiler.frontend.ExpressionParser

public class ExpressionParser extends Object
  • Constructor Details

    • ExpressionParser

      public ExpressionParser()
  • Method Details

    • parseInterpolation

      public Interpolation parseInterpolation(String expressionString) throws SightlyCompilerException
      Parses the expression string.
      Parameters:
      expressionString - as defined by the HTL spec (https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/master/SPECIFICATION.md)
      Returns:
      Parsed Expression object
      Throws:
      NullPointerException - is the given exprString is null
      SightlyCompilerException - if an error occurs while parsing the expression