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, xmlTextprotected 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 JspNodename - the name of the attribute.value - the value of the attribute.JspParseExceptionpublic void addAttribute(QName name, JspAttribute value) throws JspParseException
addAttribute in class JspNodename - the name of the attribute.value - the value of the attribute.JspParseExceptionpublic java.lang.Object getAttribute(java.lang.String name)
throws JspParseException
JspParseExceptionpublic void addChild(JspNode node) throws JspParseException
addChild in class JspNodeJspParseExceptionprotected void addAttributeChild(JspAttribute attr)
public void addChildEnd(JspNode node) throws JspParseException
addChildEnd in class JspNodeJspParseExceptionpublic boolean isJsfParentRequired()
isJsfParentRequired in class JspNodepublic boolean isEmpty()
public void getStaticText(CharBuffer cb)
getStaticText in class JspNodepublic boolean hasCustomTag()
hasCustomTag in class JspNodepublic boolean hasTag()
public JspNode addText(java.lang.String text) throws JspParseException
addText in class JspNodeJspParseExceptionprotected boolean isWhitespace(java.lang.String text)
public java.util.ArrayList<JspNode> getChildren()
getChildren in class JspNodepublic boolean hasChildren()
public boolean hasScripting()
hasScripting in class JspNodepublic boolean hasScriptingElement()
hasScriptingElement in class JspNodepublic JspNode findScriptingNode()
findScriptingNode in class JspNodepublic boolean isSingleExpression()
public boolean isChildrenStatic()
public void printXmlChildren(WriteStream os) throws java.io.IOException
os - write stream to the generated XML.java.io.IOExceptionpublic void generatePrologueChildren(JspJavaWriter out) throws java.lang.Exception
generatePrologueChildren in class JspNodejava.lang.Exceptionpublic void generateDeclarationChildren(JspJavaWriter out) throws java.io.IOException
generateDeclarationChildren in class JspNodejava.io.IOExceptionpublic void generateTagStateChildren(JspJavaWriter out) throws java.lang.Exception
generateTagStateChildren in class JspNodejava.lang.Exceptionpublic void generateTagReleaseChildren(JspJavaWriter out) throws java.lang.Exception
generateTagReleaseChildren in class JspNodejava.lang.Exceptionpublic void generateChildren(JspJavaWriter out) throws java.lang.Exception
generateChildren in class JspNodeout - the output writer for the generated java.java.lang.Exceptionpublic void generateChildrenEmpty()
throws java.lang.Exception
generateChildrenEmpty in class JspNodejava.lang.Exceptionpublic void generateStatic(JspJavaWriter out) throws java.lang.Exception
generateStatic in class JspNodeout - the output writer for the generated java.java.lang.Exceptionpublic void generateClassEpilogueChildren(JspJavaWriter out) throws java.io.IOException
generateClassEpilogueChildren in class JspNodeout - the output writer for the generated java.java.io.IOException