liqp.nodes.AtomNode Maven / Gradle / Ivy
package liqp.nodes;
import java.util.Map;
public class AtomNode implements LNode {
public static final AtomNode EMPTY = new AtomNode(new Object());
private Object value;
public AtomNode(Object value) {
this.value = value;
}
public static boolean isEmpty(Object o) {
return o == EMPTY.value;
}
@Override
public Object render(Map context) {
return value;
}
}