public class ForTag extends TagHandler
Iterable
.Modifier and Type | Class and Description |
---|---|
static class |
ForTag.Factory
Creates new tags of the given type (name).
|
Modifier and Type | Field and Description |
---|---|
protected static String |
PARAM_ITEMS |
protected static String |
PARAM_STATE |
protected static String |
PARAM_TYPE |
protected static String |
PARAM_VAR |
attributes, blocks, compilationContext, parentHandler, startOfTag, tagName
Constructor and Description |
---|
ForTag() |
Modifier and Type | Method and Description |
---|---|
void |
apply(CompositeEmitter targetBlock)
Invoked when the tag is completely parsedand can be applied to the target block.
|
void |
beforeBody()
Invoked once when all attributes are parsed but before the body is compiled.
|
Class<?> |
getExpectedAttributeType(String name)
Returns the expected type for the given attribute.
|
addBlock, getAttribute, getBlock, getCompilationContext, getConstantAttribute, getParentHandler, getStartOfTag, getTagName, setAttribute, setCompilationContext, setParentHandler, setStartOfTag, setTagName
protected static final String PARAM_ITEMS
protected static final String PARAM_VAR
protected static final String PARAM_STATE
protected static final String PARAM_TYPE
public void beforeBody()
TagHandler
beforeBody
in class TagHandler
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.