Package liqp.parser
Interface LiquidSupport
- All Superinterfaces:
Inspectable
- All Known Implementing Classes:
For.ForLoopDrop,LiquidSupport.LiquidSupportFromInspectable,Tablerow.TablerowloopDrop
Special kind of
Inspectable that do not perform
object conversion to Map<String, Object> using jackson mapper,
but instead uses result of method toLiquid().
So the objects of this kind can control with internal properties and under
what names should be accessible to parser.
For example, this Inspectable:
new Inspectable() {
public String myVar = "val";
}
will gave same data tree as this LiquidSupport:
new LiquidSupport() {
public String willBe = "omitted";
private Thread evenNotSerializedOrMappable = new Thread();
private Map<String, Object> data = new HashMap<>();
public Map<String, Object> toLiquid() {
data.put("myVar", "val");
return data;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classThe implementation of converter from Inspectable to LiquidSupport. -
Method Summary
-
Method Details
-
toLiquid
-