This processor serves a dual purpose: to mark sections of the template that can be replaced, and to do the replacing when they're encountered.
| Type | Name and description |
|---|---|
static String |
PROCESSOR_NAME |
static int |
PROCESSOR_PRECEDENCE |
| Constructor and description |
|---|
FragmentProcessor
(TemplateMode templateMode, String dialectPrefix)Constructor, sets this processor to work on the 'fragment' attribute. |
| Type | Name and description |
|---|---|
protected void |
doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler)Inserts the content of fragments into the encountered fragment placeholder. |
| Methods inherited from class | Name |
|---|---|
class AbstractAttributeTagProcessor |
getMatchingElementName, process, getMatchingAttributeName, getPrecedence, getTemplateMode, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class AbstractElementTagProcessor |
getMatchingElementName, process, getMatchingAttributeName, getPrecedence, getTemplateMode, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor, sets this processor to work on the 'fragment' attribute.
Inserts the content of fragments into the encountered fragment placeholder.
Groovy Documentation