public Collection<Tag> getAllTags() { List<Tag> tags = new ArrayList<>(tagLibrary.entries()); if (parent != null) { tags.addAll(parent.getAllTags()); } return tags; }
public MacroFunction getGlobalMacro(String identifier) { MacroFunction fn = getGlobalMacros().get(identifier); if (fn == null && parent != null) { fn = parent.getGlobalMacro(identifier); } return fn; }
public Collection<Filter> getAllFilters() { List<Filter> filters = new ArrayList<>(filterLibrary.entries()); if (parent != null) { filters.addAll(parent.getAllFilters()); } return filters; }
public Collection<ELFunctionDefinition> getAllFunctions() { List<ELFunctionDefinition> fns = new ArrayList<>(functionLibrary.entries()); if (parent != null) { fns.addAll(parent.getAllFunctions()); } return fns; }
public Collection<ExpTest> getAllExpTests() { List<ExpTest> expTests = new ArrayList<>(expTestLibrary.entries()); if (parent != null) { expTests.addAll(parent.getAllExpTests()); } return expTests; }
public Optional<String> popIncludePath() { if (includePathStack.isEmpty()) { if (parent != null) { return parent.popIncludePath(); } return Optional.empty(); } return Optional.of(includePathStack.pop()); }
public Optional<String> popExtendPath() { if (extendPathStack.isEmpty()) { if (parent != null) { return parent.popExtendPath(); } return Optional.empty(); } return Optional.of(extendPathStack.pop()); }
public Tag getTag(String name) { Tag t = tagLibrary.getTag(name); if (t != null) { return t; } if (parent != null) { return parent.getTag(name); } return null; }
public ELFunctionDefinition getFunction(String name) { ELFunctionDefinition f = functionLibrary.getFunction(name); if (f != null) { return f; } if (parent != null) { return parent.getFunction(name); } return null; }
public Filter getFilter(String name) { Filter f = filterLibrary.getFilter(name); if (f != null) { return f; } if (parent != null) { return parent.getFilter(name); } return null; }
public ExpTest getExpTest(String name) { ExpTest t = expTestLibrary.getExpTest(name); if (t != null) { return t; } if (parent != null) { return parent.getExpTest(name); } return null; }
public boolean includePathStackContains(String path) { if (includePathStack.contains(path)) { return true; } if (parent != null) { return parent.includePathStackContains(path); } return false; }
public boolean extendPathStackContains(String path) { if (extendPathStack.contains(path)) { return true; } if (parent != null) { return parent.extendPathStackContains(path); } return false; }
public boolean isAutoEscape() { if (autoEscape != null) { return autoEscape; } if (parent != null) { return parent.isAutoEscape(); } return false; }
public List<? extends Node> getSuperBlock() { if (superBlock != null) { return superBlock; } if (parent != null) { return parent.getSuperBlock(); } return null; }
public void registerFunction(ELFunctionDefinition function) { context.registerFunction(function); }
public void registerFilter(Filter filter) { context.registerFilter(filter); }
public void registerTag(Tag tag) { context.registerTag(tag); }