| java.lang.Object com.caucho.jsp.java.JspNode
All known Subclasses: com.caucho.jsp.java.JspOutput, com.caucho.jsp.java.JspForward, com.caucho.jsp.java.JspParams, com.caucho.jsp.java.JspText, com.caucho.jsp.java.StaticText, com.caucho.jsp.java.JspDirectiveTaglib, com.caucho.jsp.java.JspDirectiveInclude, com.caucho.jsp.java.JspParam, com.caucho.jsp.java.JspDirectiveAttribute, com.caucho.jsp.java.JspDoBody, com.caucho.jsp.java.JspInclude, com.caucho.jsp.java.JspParamNode, com.caucho.jsp.java.JspContainerNode, com.caucho.jsp.java.JspDirectiveTag, com.caucho.jsp.java.JspDirectivePage, com.caucho.jsp.java.JspPlugin, com.caucho.jsp.java.JspScriptlet, com.caucho.jsp.java.JspExpression, com.caucho.jsp.java.JspDirectiveVariable, com.caucho.jsp.java.JspInvoke, com.caucho.jsp.java.JspTextNode, com.caucho.jsp.java.JspDeclaration,
JspNode | abstract public class JspNode (Code) | | |
Constructor Summary | |
protected | JspNode() |
Method Summary | |
public void | addAttribute(QName name, String value) Adds an attribute. | public void | addAttribute(QName name, JspAttribute value) Adds a JspAttribute attribute. | public void | addChild(JspNode node) Adds a child node. | public void | addChildEnd(JspNode node) Adds a child node after its completely initialized.. | final public void | addNamespace(String prefix, String value) Adds a namespace, e.g. | public void | addNamespaceRec(String prefix, String value) Adds a namespace, e.g. | public JspNode | addText(String text) Adds text. | protected boolean | attributeToBoolean(String attr, String value) Converts the string to a boolean. | protected String | classToString(Class cl) | public void | convertParameterValue(JspJavaWriter out, String type, String value) | public void | endAttributes() Called after all the attributes from the tag. | public void | endElement() Called when the tag closes. | protected JspParseException | error(String msg) Creates a parse exception with the proper line information. | protected JspParseException | error(String msg, Throwable e) Creates a parse exception with the proper line information. | protected JspParseException | error(Throwable e) Creates a parse exception with the proper line information. | public static String | escapeJavaString(String s) Escapes a java string. | public JspNode | findScriptingNode() | abstract public void | generate(JspJavaWriter out) | public void | generateChildren(JspJavaWriter out) Generates the code for the children. | public void | generateChildrenEmpty() Generates the code for the children. | public void | generateDeclaration(JspJavaWriter out) generates declaration data. | public void | generateDeclarationChildren(JspJavaWriter out) generates data for declaration children. | protected String | generateELValue(Class type, String value) | public void | generateEmpty() | public void | generateEndLocation(JspJavaWriter out) Generates the start location. | void | generateFragment(JspJavaWriter out, JspFragmentNode frag, String contextVar) | protected String | generateFragment(JspFragmentNode frag, String contextVar) Generates the code for a fragment. | void | generateFragmentParameter(JspJavaWriter out, Object obj, Object objValue, Method method, boolean allowRtexpr, String contextVar) | String | generateFragmentParameter(String string, boolean allowRtexpr) | void | generateIncludeParams(JspJavaWriter out, ArrayList params) Generate include params. | String | generateJstlValue(Class type, String value) | protected String | generateObject(Object obj) | String | generateParameterValue(Class type, String value) | String | generateParameterValue(Class type, String value, boolean rtexpr, TagAttributeInfo attrInfo, boolean isELIgnored) | void | generateParentTag(JspJavaWriter out, TagInstance parent) | protected String | generateParentTag(TagInstance parent) Generates the code for the value of a parent tag. | public void | generatePrologue(JspJavaWriter out) generates prologue data. | public void | generatePrologueChildren(JspJavaWriter out) generates data for prologue children. | public void | generatePrologueDeclare(JspJavaWriter out) generates prologue data. | String | generateRTValue(Class type, Object value) | void | generateSetParameter(JspJavaWriter out, String obj, Object objValue, Method method, boolean allowRtexpr, String contextVar, boolean isFragment, TagAttributeInfo attrInfo) | void | generateSetParameter(JspJavaWriter out, String obj, String value, Method method, Class editorClass) | public void | generateStartLocation(JspJavaWriter out) Generates the start location. | public void | generateStatic(JspJavaWriter out) | String | generateValue(Class type, String value) | public String | getBodyContent() Returns the body content. | public ArrayList<JspNode> | getChildren() Returns the children. | public String | getCustomTagName() Returns the tag name for the current tag. | public int | getEndAttributeLine() | public int | getEndLine() | public String | getFilename() | public String | getJsfBodyVar() | public String | getJsfVar() | final public NamespaceContext | getNamespaceContext() Returns the XPath namespace context. | public String | getNamespacePrefix(String uri) Adds a namespace, e.g. | public JspNode | getParent() Returns the parent node. | public String | getParentTagName() | public JspNode | getParentTagNode() | public QName | getQName() Returns the qname of the node. | public String | getRuntimeAttribute(String value) Returns the runtime attribute of the value. | public JspSegmentNode | getSegment() Returns the containing segment. | public int | getStartLine() | public String | getStaticText() Returns the static text. | public void | getStaticText(CharBuffer cb) Returns the static text. | public TagInstance | getTag() Returns the TagInstance of the enclosing parent. | public String | getTagName() Returns the qname of the node. | public boolean | hasCustomTag() True if the node contains a child tag. | public boolean | hasDeferredAttribute(String value) Returns true if the value is a runtime attribute. | public boolean | hasDeferredAttribute(String value, boolean isELIgnored) Returns true if the value is a runtime attribute. | public boolean | hasELAttribute(String value) Returns true if the value is a runtime attribute. | public boolean | hasELAttribute(String value, boolean isELIgnored) Returns true if the value is a runtime attribute. | public boolean | hasNamespace(String prefix, String uri) Returns true if the namespace decl has been printed. | public boolean | hasNamespace(QName name) Returns true if the namespace decl has been printed. | public boolean | hasRuntimeAttribute(String value) Returns true if the value is a runtime attribute. | public boolean | hasScripting() | public boolean | hasScripting(String value) Returns true if the string has scripting. | public boolean | hasScripting(JspAttribute value) Returns true if the string has scripting. | public boolean | hasScriptingElement() True if the node has scripting element (i.e. | public boolean | hasTag() True if the node contains a child tag. | protected String | invokeFragment(JspFragmentNode frag) Generates the code invoking a fragment to a string. | public boolean | isInFragment() | public boolean | isJsfParentRequired() True if the jsf-parent setting is required. | public boolean | isJstl() True if this is a jstl node. | public boolean | isPre21Taglib() Return true for pre-21 taglib. | public boolean | isSimpleTag() Returns true for a simple tag. | public boolean | isStatic() True if the node only has static text. | protected Class | loadClass(String type) | public void | printJspId(WriteStream os) | abstract public void | printXml(WriteStream os) Generates the XML text representation for the tag validation. | public void | printXmlAttribute(WriteStream os, String name, String text) Generates the XML text representation for the tag validation. | public void | printXmlText(WriteStream os, String text) Generates the XML text representation for the tag validation. | public void | setEndAttributeLocation(String filename, int line) Sets the end location of the node. | public void | setEndLocation(String filename, int line) Sets the end location of the node. | public void | setGenerator(JavaJspGenerator gen) Sets the Java generator. | final public void | setNamespace(Namespace ns) Adds a namespace, e.g. | public void | setParent(JspNode parent) | public void | setParseState(ParseState parseState) | public void | setQName(QName name) | public void | setStartLocation(Path sourcePath, String filename, int line) Sets the start location of the node. | String | stringToValue(Class type, String obj) Converts a string-valued expression to the given type. | public static String | toELObject(String expr, Class type) | public String | toString() Returns a printable version of the node. | public String | xmlAttrText(String text) Generates the XML text. | public String | xmlText(String text) Generates the XML text. |
_endAttributeLine | protected int _endAttributeLine(Code) | | |
_endLine | protected int _endLine(Code) | | |
_sourcePath | protected Path _sourcePath(Code) | | |
_startLine | protected int _startLine(Code) | | |
JspNode | protected JspNode()(Code) | | |
addAttribute | public void addAttribute(QName name, JspAttribute value) throws JspParseException(Code) | | Adds a JspAttribute attribute.
Parameters: name - the name of the attribute. Parameters: value - the value of the attribute. |
addNamespace | final public void addNamespace(String prefix, String value)(Code) | | Adds a namespace, e.g. from a prefix declaration.
|
addNamespaceRec | public void addNamespaceRec(String prefix, String value)(Code) | | Adds a namespace, e.g. from a prefix declaration.
|
endAttributes | public void endAttributes() throws JspParseException(Code) | | Called after all the attributes from the tag.
|
endElement | public void endElement() throws Exception(Code) | | Called when the tag closes.
|
escapeJavaString | public static String escapeJavaString(String s)(Code) | | Escapes a java string.
|
findScriptingNode | public JspNode findScriptingNode()(Code) | | Finds the first scripting node
|
generate | abstract public void generate(JspJavaWriter out) throws Exception(Code) | | Generates the code for the tag
Parameters: out - the output writer for the generated java. |
generateChildren | public void generateChildren(JspJavaWriter out) throws Exception(Code) | | Generates the code for the children.
Parameters: out - the output writer for the generated java. |
generateChildrenEmpty | public void generateChildrenEmpty() throws Exception(Code) | | Generates the code for the children.
Parameters: out - the output writer for the generated java. |
generateDeclarationChildren | public void generateDeclarationChildren(JspJavaWriter out) throws IOException(Code) | | generates data for declaration children.
|
generateEmpty | public void generateEmpty() throws Exception(Code) | | Generates the code for the tag
Parameters: out - the output writer for the generated java. |
generatePrologueChildren | public void generatePrologueChildren(JspJavaWriter out) throws Exception(Code) | | generates data for prologue children.
|
generateStatic | public void generateStatic(JspJavaWriter out) throws Exception(Code) | | Generates the code for the tag
Parameters: out - the output writer for the generated java. |
getBodyContent | public String getBodyContent()(Code) | | Returns the body content.
|
getCustomTagName | public String getCustomTagName()(Code) | | Returns the tag name for the current tag.
|
getEndAttributeLine | public int getEndAttributeLine()(Code) | | Gets the attribute ending line number
|
getEndLine | public int getEndLine()(Code) | | Gets the ending line number
|
getFilename | public String getFilename()(Code) | | Gets the filename of the node
|
getJsfBodyVar | public String getJsfBodyVar()(Code) | | Returns the variable containing the jsf body
|
getJsfVar | public String getJsfVar()(Code) | | Returns the variable containing the jsf component
|
getNamespaceContext | final public NamespaceContext getNamespaceContext()(Code) | | Returns the XPath namespace context.
|
getNamespacePrefix | public String getNamespacePrefix(String uri)(Code) | | Adds a namespace, e.g. from a prefix declaration.
|
getParent | public JspNode getParent()(Code) | | Returns the parent node.
|
getParentTagName | public String getParentTagName()(Code) | | Returns parent tag node
|
getParentTagNode | public JspNode getParentTagNode()(Code) | | Returns parent tag node
|
getQName | public QName getQName()(Code) | | Returns the qname of the node.
|
getStartLine | public int getStartLine()(Code) | | Gets the starting line number
|
getStaticText | public String getStaticText()(Code) | | Returns the static text.
|
getStaticText | public void getStaticText(CharBuffer cb)(Code) | | Returns the static text.
|
getTag | public TagInstance getTag()(Code) | | Returns the TagInstance of the enclosing parent.
|
getTagName | public String getTagName()(Code) | | Returns the qname of the node.
|
hasCustomTag | public boolean hasCustomTag()(Code) | | True if the node contains a child tag.
|
hasDeferredAttribute | public boolean hasDeferredAttribute(String value)(Code) | | Returns true if the value is a runtime attribute.
|
hasDeferredAttribute | public boolean hasDeferredAttribute(String value, boolean isELIgnored)(Code) | | Returns true if the value is a runtime attribute.
|
hasELAttribute | public boolean hasELAttribute(String value)(Code) | | Returns true if the value is a runtime attribute.
|
hasELAttribute | public boolean hasELAttribute(String value, boolean isELIgnored)(Code) | | Returns true if the value is a runtime attribute.
|
hasNamespace | public boolean hasNamespace(String prefix, String uri)(Code) | | Returns true if the namespace decl has been printed.
|
hasNamespace | public boolean hasNamespace(QName name)(Code) | | Returns true if the namespace decl has been printed.
|
hasRuntimeAttribute | public boolean hasRuntimeAttribute(String value) throws JspParseException(Code) | | Returns true if the value is a runtime attribute.
|
hasScripting | public boolean hasScripting()(Code) | | True if the node has scripting (counting rtexpr)
|
hasScripting | public boolean hasScripting(String value)(Code) | | Returns true if the string has scripting.
|
hasScripting | public boolean hasScripting(JspAttribute value)(Code) | | Returns true if the string has scripting.
|
hasScriptingElement | public boolean hasScriptingElement()(Code) | | True if the node has scripting element (i.e. not counting rtexpr values)
|
hasTag | public boolean hasTag()(Code) | | True if the node contains a child tag.
|
isInFragment | public boolean isInFragment()(Code) | | Returns true if in a fragment
|
isJsfParentRequired | public boolean isJsfParentRequired()(Code) | | True if the jsf-parent setting is required.
|
isJstl | public boolean isJstl()(Code) | | True if this is a jstl node.
|
isPre21Taglib | public boolean isPre21Taglib()(Code) | | Return true for pre-21 taglib.
|
isSimpleTag | public boolean isSimpleTag()(Code) | | Returns true for a simple tag.
|
isStatic | public boolean isStatic()(Code) | | True if the node only has static text.
|
printJspId | public void printJspId(WriteStream os) throws IOException(Code) | | Prints the jsp:id
|
printXml | abstract public void printXml(WriteStream os) throws IOException(Code) | | Generates the XML text representation for the tag validation.
Parameters: os - write stream to the generated XML. |
printXmlAttribute | public void printXmlAttribute(WriteStream os, String name, String text) throws IOException(Code) | | Generates the XML text representation for the tag validation.
Parameters: os - write stream to the generated XML. |
printXmlText | public void printXmlText(WriteStream os, String text) throws IOException(Code) | | Generates the XML text representation for the tag validation.
Parameters: os - write stream to the generated XML. |
setEndAttributeLocation | public void setEndAttributeLocation(String filename, int line)(Code) | | Sets the end location of the node.
|
setEndLocation | public void setEndLocation(String filename, int line)(Code) | | Sets the end location of the node.
|
setNamespace | final public void setNamespace(Namespace ns)(Code) | | Adds a namespace, e.g. from a prefix declaration.
|
setParent | public void setParent(JspNode parent)(Code) | | Sets the parent node
|
setParseState | public void setParseState(ParseState parseState)(Code) | | Sets the parse state
|
setQName | public void setQName(QName name)(Code) | | Sets the node's qname
|
setStartLocation | public void setStartLocation(Path sourcePath, String filename, int line)(Code) | | Sets the start location of the node.
|
stringToValue | String stringToValue(Class type, String obj)(Code) | | Converts a string-valued expression to the given type.
|
toString | public String toString()(Code) | | Returns a printable version of the node.
|
|
|