Interface Plugin
- All Superinterfaces:
Comparable<Plugin>
- All Known Implementing Classes:
AbstractPlugin
,AbstractRepeatPlugin
,AttributePlugin
,CallPlugin
,ElementPlugin
,IncludePlugin
,ListPlugin
,RepeatPlugin
,ResourcePlugin
,SetPlugin
,TemplatePlugin
,TestPlugin
,TextPlugin
,UnwrapPlugin
,UsePlugin
Common interface for plugins
-
Method Summary
Modifier and TypeMethodDescriptioninvoke
(Expression expression, PluginCallInfo callInfo, CompilerContext compilerContext) Given the plugin invocation provide an invoke object which will influence the rendering command streamname()
The name of the pluginint
priority()
The priority of the pluginMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
invoke
PluginInvoke invoke(Expression expression, PluginCallInfo callInfo, CompilerContext compilerContext) Given the plugin invocation provide an invoke object which will influence the rendering command stream- Parameters:
expression
- the expression used at plugin invocationcallInfo
- the parameters given to the plugincompilerContext
- a compiler context providing utility methods to plugins- Returns:
- an invocation
- See Also:
-
priority
int priority()The priority of the plugin- Returns:
- a numeric value which controls when, relative to other plugins, should this plugin be applied
-
name
String name()The name of the plugin- Returns:
- the plugin name
-