Class PathCompiler


  • public final class PathCompiler
    extends Object
    Compile mustache/handlebars expressions.
    Since:
    4.0.1.
    • Method Detail

      • compile

        public static List<PathExpression> compile​(String key)
        Split the property name by separator (except within a [] escaped blocked) and create an array of it. The compiled expression will extend lookup to parent.
        Parameters:
        key - The property's name.
        Returns:
        A path representation of the property (array based).
      • compile

        public static List<PathExpression> compile​(String key,
                                                   boolean parentScopeResolution)
        Split the property name by separator (except within a [] escaped blocked) and create an array of it.
        Parameters:
        key - The property's name.
        parentScopeResolution - False, if we want to restrict lookup to current scope.
        Returns:
        A path representation of the property (array based).