com.hubspot.jinjava.doc.JinjavaDoc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jinjava Show documentation
Show all versions of jinjava Show documentation
Jinja templating engine implemented in Java
package com.hubspot.jinjava.doc;
import java.util.Map;
import java.util.TreeMap;
public class JinjavaDoc {
private final Map expTests = new TreeMap<>();
private final Map filters = new TreeMap<>();
private final Map functions = new TreeMap<>();
private final Map tags = new TreeMap<>();
public Map getExpTests() {
return expTests;
}
public void addExpTest(JinjavaDocExpTest expTest) {
expTests.put(expTest.getName(), expTest);
}
public Map getFilters() {
return filters;
}
public void addFilter(JinjavaDocFilter filter) {
filters.put(filter.getName(), filter);
}
public Map getFunctions() {
return functions;
}
public void addFunction(JinjavaDocFunction function) {
functions.put(function.getName(), function);
}
public Map getTags() {
return tags;
}
public void addTag(JinjavaDocTag tag) {
tags.put(tag.getName(), tag);
}
}