public abstract class JspContainerNode extends JspNode
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<QName> |
_attributeNames |
protected java.util.ArrayList<java.lang.Object> |
_attributeValues |
protected java.util.ArrayList<JspNode> |
_children |
protected boolean |
_hasJspAttribute |
_endAttributeLine, _endLine, _filename, _gen, _name, _ns, _parent, _parseState, _sourcePath, _startLine
Constructor and Description |
---|
JspContainerNode() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(QName name,
JspAttribute value)
Adds a JspAttribute attribute.
|
void |
addAttribute(QName name,
java.lang.String value)
Adds an attribute.
|
protected void |
addAttributeChild(JspAttribute attr) |
void |
addChild(JspNode node)
Adds a child node.
|
void |
addChildEnd(JspNode node)
Adds a child node after its done initializing.
|
JspNode |
addText(java.lang.String text)
Adds a text node.
|
JspNode |
findScriptingNode()
Finds the first scripting node
|
void |
generateChildren(JspJavaWriter out)
Generates the code for the children.
|
void |
generateChildrenEmpty()
Generates the code for the children.
|
void |
generateClassEpilogueChildren(JspJavaWriter out)
generates data for tag state children.
|
void |
generateDeclarationChildren(JspJavaWriter out)
generates data for declaration children.
|
void |
generatePrologueChildren(JspJavaWriter out)
generates data for prologue children.
|
void |
generateStatic(JspJavaWriter out)
Generates static text.
|
void |
generateTagReleaseChildren(JspJavaWriter out)
generates data for tag state children.
|
void |
generateTagStateChildren(JspJavaWriter out)
generates data for tag state children.
|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the named attribute.
|
java.util.ArrayList<JspNode> |
getChildren()
Returns the children.
|
void |
getStaticText(CharBuffer cb)
Returns the static text.
|
boolean |
hasChildren()
Has children.
|
boolean |
hasCustomTag()
Set true if the node contains a child tag.
|
boolean |
hasScripting()
True if the node has scripting
|
boolean |
hasScriptingElement()
True if the node has scripting element (i.e.
|
boolean |
hasTag()
Set true if the node contains a child tag.
|
boolean |
isChildrenStatic()
Returns true if the children are static.
|
boolean |
isEmpty()
Returns true if the node is empty
|
boolean |
isJsfParentRequired()
True if the jsf-parent setting is required.
|
boolean |
isSingleExpression()
True if the node has scripting element (i.e.
|
protected boolean |
isWhitespace(java.lang.String text) |
void |
printXmlChildren(WriteStream os)
Generates the XML text representation for the tag validation.
|
addNamespace, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, endAttributes, endElement, error, error, error, escapeJavaString, generate, generateClassEpilogue, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologue, generatePrologueDeclare, generateStartLocation, generateTagRelease, generateTagState, getBodyContent, getCustomTagName, getEndAttributeLine, getEndLine, getFilename, getGenerator, getJsfBodyVar, getJsfVar, getNamespaceContext, getNamespacePrefix, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, getTag, getTagName, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, hasNamespace, hasNamespace, hasRuntimeAttribute, hasScripting, hasScripting, invokeFragment, isInFragment, isJsp21, isJstl, isPre21Taglib, isSimpleTag, isStatic, loadClass, printJspId, printXml, printXmlAttribute, printXmlOpen, printXmlText, setEndAttributeLocation, setEndLocation, setGenerator, setNamespace, setParent, setParseState, setQName, setStartLocation, toELObject, toString, xmlAttrText, xmlText
protected java.util.ArrayList<QName> _attributeNames
protected java.util.ArrayList<java.lang.Object> _attributeValues
protected java.util.ArrayList<JspNode> _children
protected boolean _hasJspAttribute
public void addAttribute(QName name, java.lang.String value) throws JspParseException
addAttribute
in class JspNode
name
- the name of the attribute.value
- the value of the attribute.JspParseException
public void addAttribute(QName name, JspAttribute value) throws JspParseException
addAttribute
in class JspNode
name
- the name of the attribute.value
- the value of the attribute.JspParseException
public java.lang.Object getAttribute(java.lang.String name) throws JspParseException
JspParseException
public void addChild(JspNode node) throws JspParseException
addChild
in class JspNode
JspParseException
protected void addAttributeChild(JspAttribute attr)
public void addChildEnd(JspNode node) throws JspParseException
addChildEnd
in class JspNode
JspParseException
public boolean isJsfParentRequired()
isJsfParentRequired
in class JspNode
public boolean isEmpty()
public void getStaticText(CharBuffer cb)
getStaticText
in class JspNode
public boolean hasCustomTag()
hasCustomTag
in class JspNode
public boolean hasTag()
public JspNode addText(java.lang.String text) throws JspParseException
addText
in class JspNode
JspParseException
protected boolean isWhitespace(java.lang.String text)
public java.util.ArrayList<JspNode> getChildren()
getChildren
in class JspNode
public boolean hasChildren()
public boolean hasScripting()
hasScripting
in class JspNode
public boolean hasScriptingElement()
hasScriptingElement
in class JspNode
public JspNode findScriptingNode()
findScriptingNode
in class JspNode
public boolean isSingleExpression()
public boolean isChildrenStatic()
public void printXmlChildren(WriteStream os) throws java.io.IOException
os
- write stream to the generated XML.java.io.IOException
public void generatePrologueChildren(JspJavaWriter out) throws java.lang.Exception
generatePrologueChildren
in class JspNode
java.lang.Exception
public void generateDeclarationChildren(JspJavaWriter out) throws java.io.IOException
generateDeclarationChildren
in class JspNode
java.io.IOException
public void generateTagStateChildren(JspJavaWriter out) throws java.lang.Exception
generateTagStateChildren
in class JspNode
java.lang.Exception
public void generateTagReleaseChildren(JspJavaWriter out) throws java.lang.Exception
generateTagReleaseChildren
in class JspNode
java.lang.Exception
public void generateChildren(JspJavaWriter out) throws java.lang.Exception
generateChildren
in class JspNode
out
- the output writer for the generated java.java.lang.Exception
public void generateChildrenEmpty() throws java.lang.Exception
generateChildrenEmpty
in class JspNode
java.lang.Exception
public void generateStatic(JspJavaWriter out) throws java.lang.Exception
generateStatic
in class JspNode
out
- the output writer for the generated java.java.lang.Exception
public void generateClassEpilogueChildren(JspJavaWriter out) throws java.io.IOException
generateClassEpilogueChildren
in class JspNode
out
- the output writer for the generated java.java.io.IOException