Class PathCompiler


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<PathExpression> compile​(java.lang.String key)
      Split the property name by separator (except within a [] escaped blocked) and create an array of it.
      static java.util.List<PathExpression> compile​(java.lang.String key, boolean parentScopeResolution)
      Split the property name by separator (except within a [] escaped blocked) and create an array of it.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • compile

        public static java.util.List<PathExpression> compile​(java.lang.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 java.util.List<PathExpression> compile​(java.lang.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).