public class GroovyElseIfTag extends GroovySyntaxTag
| 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 |
|---|
GroovyElseIfTag() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
attributeValueOrNull(java.lang.String attributeName) |
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.
|
protected void |
outputStartTag(java.lang.String env,
java.lang.String test) |
calculateExpression, doEachMethod, endEachMethod, getForeachRenamedIt, init, setAttribute, setAttributes, setWriterpublic static final java.lang.String TAG_NAME
protected void outputStartTag(java.lang.String env,
java.lang.String test)
public void doEndTag()
GrailsTagpublic java.lang.String getName()
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.
public 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 situationspublic void doStartTag()
GrailsTagprotected java.lang.String attributeValueOrNull(java.lang.String attributeName)