Interface MacroCounter
-
- All Known Implementing Classes:
DefaultMacroCounter
public interface MacroCounter
Used to count macro usages through the rendering process. Implementations should be thread-safe- Since:
- 5.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMacroUsage(MacroDefinition macroDefinition, @Nullable Macro macro)
Record a single usage of the given macro.Collection<MacroCount>
getUsages()
-
-
-
Method Detail
-
addMacroUsage
void addMacroUsage(MacroDefinition macroDefinition, @Nullable Macro macro)
Record a single usage of the given macro.- Parameters:
macro
- null if this was an attempt to render an unknown macro
-
getUsages
Collection<MacroCount> getUsages()
-
-