public class TaglibTagHandler extends TagHandler
Templates named /taglib/PREFIX/tagName.html.pasta can be referenced via <PREFIX:tagName>. Their invocation is handled by this handler.
attributes, blocks, compilationContext, parentHandler, startOfTag, tagName
Constructor and Description |
---|
TaglibTagHandler(Template template)
Creates a new handler for the given template.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(CompositeEmitter targetBlock)
Invoked when the tag is completely parsedand can be applied to the target block.
|
Class<?> |
getExpectedAttributeType(String name)
Returns the expected type for the given attribute.
|
addBlock, beforeBody, getAttribute, getBlock, getCompilationContext, getConstantAttribute, getParentHandler, getStartOfTag, getTagName, setAttribute, setCompilationContext, setParentHandler, setStartOfTag, setTagName
public TaglibTagHandler(Template template)
template
- the template which was resolved via a tag prefix and name.public void apply(CompositeEmitter targetBlock)
TagHandler
apply
in class TagHandler
targetBlock
- the outer block to which the output can be appendedpublic Class<?> getExpectedAttributeType(String name)
TagHandler
getExpectedAttributeType
in class TagHandler
name
- the name of the attributeExpression
to signal that any expression is
accepted or null to indicate that the parameter is unexpected.Copyright © 2018. All rights reserved.