|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jsp.java.JspNode
com.caucho.jsp.java.JspContainerNode
public abstract class JspContainerNode
A node which can contain other nodes.
| Field Summary | |
|---|---|
protected java.util.ArrayList<QName> |
_attributeNames
|
protected java.util.ArrayList<java.lang.Object> |
_attributeValues
|
protected java.util.ArrayList<JspNode> |
_children
|
protected boolean |
_hasJspAttribute
|
| Fields inherited from class com.caucho.jsp.java.JspNode |
|---|
_endAttributeLine, _endLine, _filename, _gen, _name, _ns, _parent, _parseState, _sourcePath, _startLine |
| Constructor Summary | |
|---|---|
JspContainerNode()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<QName> _attributeNames
protected java.util.ArrayList<java.lang.Object> _attributeValues
protected java.util.ArrayList<JspNode> _children
protected boolean _hasJspAttribute
| Constructor Detail |
|---|
public JspContainerNode()
| Method Detail |
|---|
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.
JspParseException
public void addAttribute(QName name,
JspAttribute value)
throws JspParseException
addAttribute in class JspNodename - 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 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()
hasTag in class JspNode
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.IOException
public void generatePrologueChildren(JspJavaWriter out)
throws java.lang.Exception
generatePrologueChildren in class JspNodejava.lang.Exception
public void generateDeclarationChildren(JspJavaWriter out)
throws java.io.IOException
generateDeclarationChildren in class JspNodejava.io.IOException
public void generateTagStateChildren(JspJavaWriter out)
throws java.lang.Exception
generateTagStateChildren in class JspNodejava.lang.Exception
public void generateTagReleaseChildren(JspJavaWriter out)
throws java.lang.Exception
generateTagReleaseChildren in class JspNodejava.lang.Exception
public void generateChildren(JspJavaWriter out)
throws java.lang.Exception
generateChildren in class JspNodeout - the output writer for the generated java.
java.lang.Exception
public void generateChildrenEmpty()
throws java.lang.Exception
generateChildrenEmpty in class JspNodejava.lang.Exception
public void generateStatic(JspJavaWriter out)
throws java.lang.Exception
generateStatic in class JspNodeout - the output writer for the generated java.
java.lang.Exception
public void generateClassEpilogueChildren(JspJavaWriter out)
throws java.io.IOException
generateClassEpilogueChildren in class JspNodeout - the output writer for the generated java.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||