Package com.github.jknack.handlebars
Class PathCompiler
- java.lang.Object
-
- com.github.jknack.handlebars.PathCompiler
-
public final class PathCompiler extends Object
Compile mustache/handlebars expressions.- Since:
- 4.0.1.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<PathExpression>
compile(String key)
Split the property name by separator (except within a [] escaped blocked) and create an array of it.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.
-
-
-
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).
-
-