public class GroovyCollectTag extends GroovySyntaxTag
${it}
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME |
ATTRIBUTE_IN, ATTRIBUTE_VAR, attributes, ATTRIBUTES_STATUS, foreachRenamedIt, out, parser, tagContext| Constructor and Description |
|---|
GroovyCollectTag() |
| Modifier and Type | Method and Description |
|---|---|
void |
doEndTag()
process the end tag
|
void |
doStartTag()
Process the start tag
|
java.lang.String |
getName() |
boolean |
isAllowPrecedingContent()
Tags must return the correct value to indicate whether or not non-whitespace content is permitted before this tag.
|
boolean |
isKeepPrecedingWhiteSpace()
Tags must return the correct value to indicate whether or not whitespace before this tag should be kept in the output.
|
calculateExpression, doEachMethod, endEachMethod, getForeachRenamedIt, init, setAttribute, setAttributes, setWriterpublic static final java.lang.String TAG_NAME
public boolean isKeepPrecedingWhiteSpace()
GroovySyntaxTagTags must return the correct value to indicate whether or not whitespace before this tag should be kept in the output.
This is for tags that must follow other tags, such as g:else or g:elseif that do not allow content between them and the previous tag, and need to swallow the whitespace between them.
isKeepPrecedingWhiteSpace in class GroovySyntaxTagpublic boolean isAllowPrecedingContent()
GroovySyntaxTagTags must return the correct value to indicate whether or not non-whitespace content is permitted before this tag.
This is for tags that must follow other tags, such as g:else or g:elseif that do not allow content between them and the previous tag. It is simply used as a safety mechanism to trap incorrect usage of tags.
TODO rework this and combine with isKeepPrecedingWhiteSpace as really they are used in the same situationsisAllowPrecedingContent in class GroovySyntaxTagpublic void doStartTag()
GrailsTagpublic void doEndTag()
GrailsTagpublic java.lang.String getName()