| java.lang.Object com.caucho.jsp.java.JspNode com.caucho.jsp.java.JspContainerNode com.caucho.jsp.java.GenericTag
All known Subclasses: com.caucho.jsp.java.CustomTag, com.caucho.jsp.java.TagFileTag, com.caucho.jsp.java.CustomSimpleTag,
Method Summary | |
public void | addChild(JspNode node) Adds a child node. | public void | endElement() | protected void | fillAttributes(JspJavaWriter out, String name) | protected VariableInfo[] | fillVariableInfo(TagVariableInfo[] tagVars, TagData tagData) Returns the VariableInfo corresponding the to tag vars and the tag
data. | abstract public void | generate(JspJavaWriter out) Generates the code for a custom tag. | public void | generatePrologue(JspJavaWriter out) Generates code before the actual JSP. | public void | generatePrologueDeclare(JspJavaWriter out) | void | generateSetAttribute(JspJavaWriter out, String name, QName attrName, Object value, boolean allowRtexpr, boolean isFragment, TagAttributeInfo attrInfo) | public String | getBodyContent() Returns the body content. | public String | getCustomTagName() Returns the tag name for the current tag. | public String | getJsfBodyVar() | public String | getJsfVar() | public TagInstance | getTag() | public TagInfo | getTagInfo() | public VariableInfo[] | getVarInfo() | public boolean | hasScripting() | protected boolean | hasScriptlet(JspNode node) | protected boolean | hasVarDeclaration(int scope) Returns true if there is a tag variable declaration matching the scope. | protected boolean | isDeclared() | public boolean | isJsfParentRequired() True if the jsf-parent setting is required. | public boolean | isJstl() True if this is a jstl node. | public boolean | isPre21Taglib() | public boolean | isSimple() Returns true if the tag is a simple tag. | protected void | printVarAssign(JspJavaWriter out, int scope) Prints a tag variable declaration. | protected void | printVarAssign(JspJavaWriter out, int scope, VariableInfo var) Prints a tag variable declaration. | protected void | printVarDeclaration(JspJavaWriter out, int scope) Prints a tag variable declaration. | protected void | printVarDeclare(JspJavaWriter out, int scope) Prints a tag variable declaration. | protected void | printVarDeclare(JspJavaWriter out, int scope, VariableInfo var) Prints a tag variable declaration. | public void | printXml(WriteStream os) Generates the XML text representation for the tag validation. | public void | setTagClass(Class cl) | public void | setTagInfo(TagInfo tagInfo) | protected void | validateClass(String className, String varName) Checks that the given class is a valid variable class. |
GenericTag | public GenericTag()(Code) | | |
endElement | public void endElement() throws Exception(Code) | | Completes the element
|
fillVariableInfo | protected VariableInfo[] fillVariableInfo(TagVariableInfo[] tagVars, TagData tagData) throws JspParseException(Code) | | Returns the VariableInfo corresponding the to tag vars and the tag
data. Mainly, this means looking up the variable names from the
attributes for the name-from-attribute.
Parameters: tagVars - the implicit tag variables for the tag Parameters: tagData - the parsed tag attributes an array of filled VariableInfo |
generate | abstract public void generate(JspJavaWriter out) throws Exception(Code) | | Generates the code for a custom tag.
Parameters: out - the output writer for the generated java. |
generateSetAttribute | void generateSetAttribute(JspJavaWriter out, String name, QName attrName, Object value, boolean allowRtexpr, boolean isFragment, TagAttributeInfo attrInfo) throws Exception(Code) | | Sets an attribute for a tag
Parameters: info - the tag's introspected information Parameters: name - the tag's Java variable name Parameters: attrName - the attribute name to set Parameters: value - the new value of the tag. |
getBodyContent | public String getBodyContent()(Code) | | Returns the body content.
|
getCustomTagName | public String getCustomTagName()(Code) | | Returns the tag name for the current tag.
|
getJsfBodyVar | public String getJsfBodyVar()(Code) | | Returns the variable containing the jsf body
|
getJsfVar | public String getJsfVar()(Code) | | Returns the variable containing the jsf component
|
hasScripting | public boolean hasScripting()(Code) | | True if the node has scripting
|
hasScriptlet | protected boolean hasScriptlet(JspNode node)(Code) | | Returns true if the node or one of its children is a scriptlet
|
hasVarDeclaration | protected boolean hasVarDeclaration(int scope) throws Exception(Code) | | Returns true if there is a tag variable declaration matching the scope.
|
isDeclared | protected boolean isDeclared()(Code) | | Returns true if the tag instance has been declared
|
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) | | |
isSimple | public boolean isSimple()(Code) | | Returns true if the tag is a simple tag.
|
printVarAssign | protected void printVarAssign(JspJavaWriter out, int scope) throws Exception(Code) | | Prints a tag variable declaration. Only the variables matching the
scope will be printed.
Parameters: out - the stream to the java code. Parameters: scope - the variable scope to print |
printVarAssign | protected void printVarAssign(JspJavaWriter out, int scope, VariableInfo var) throws Exception(Code) | | Prints a tag variable declaration. Only the variables matching the
scope will be printed.
Parameters: out - the stream to the java code. Parameters: scope - the variable scope to print |
printVarDeclaration | protected void printVarDeclaration(JspJavaWriter out, int scope) throws Exception(Code) | | Prints a tag variable declaration. Only the variables matching the
scope will be printed.
Parameters: out - the stream to the java code. Parameters: scope - the variable scope to print |
printVarDeclare | protected void printVarDeclare(JspJavaWriter out, int scope) throws Exception(Code) | | Prints a tag variable declaration. Only the variables matching the
scope will be printed.
Parameters: out - the stream to the java code. Parameters: scope - the variable scope to print |
printVarDeclare | protected void printVarDeclare(JspJavaWriter out, int scope, VariableInfo var) throws Exception(Code) | | Prints a tag variable declaration. Only the variables matching the
scope will be printed.
Parameters: out - the stream to the java code. Parameters: scope - the variable scope to print |
printXml | 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. |
Methods inherited from com.caucho.jsp.java.JspNode | public void addAttribute(QName name, String value) throws JspParseException(Code)(Java Doc) public void addAttribute(QName name, JspAttribute value) throws JspParseException(Code)(Java Doc) public void addChild(JspNode node) throws JspParseException(Code)(Java Doc) public void addChildEnd(JspNode node) throws JspParseException(Code)(Java Doc) final public void addNamespace(String prefix, String value)(Code)(Java Doc) public void addNamespaceRec(String prefix, String value)(Code)(Java Doc) public JspNode addText(String text) throws JspParseException(Code)(Java Doc) protected boolean attributeToBoolean(String attr, String value) throws JspParseException(Code)(Java Doc) protected String classToString(Class cl)(Code)(Java Doc) public void convertParameterValue(JspJavaWriter out, String type, String value) throws IOException(Code)(Java Doc) public void endAttributes() throws JspParseException(Code)(Java Doc) public void endElement() throws Exception(Code)(Java Doc) protected JspParseException error(String msg)(Code)(Java Doc) protected JspParseException error(String msg, Throwable e)(Code)(Java Doc) protected JspParseException error(Throwable e)(Code)(Java Doc) public static String escapeJavaString(String s)(Code)(Java Doc) public JspNode findScriptingNode()(Code)(Java Doc) abstract public void generate(JspJavaWriter out) throws Exception(Code)(Java Doc) public void generateChildren(JspJavaWriter out) throws Exception(Code)(Java Doc) public void generateChildrenEmpty() throws Exception(Code)(Java Doc) public void generateDeclaration(JspJavaWriter out) throws IOException(Code)(Java Doc) public void generateDeclarationChildren(JspJavaWriter out) throws IOException(Code)(Java Doc) protected String generateELValue(Class type, String value) throws Exception(Code)(Java Doc) public void generateEmpty() throws Exception(Code)(Java Doc) public void generateEndLocation(JspJavaWriter out) throws IOException(Code)(Java Doc) void generateFragment(JspJavaWriter out, JspFragmentNode frag, String contextVar) throws Exception(Code)(Java Doc) protected String generateFragment(JspFragmentNode frag, String contextVar) throws Exception(Code)(Java Doc) void generateFragmentParameter(JspJavaWriter out, Object obj, Object objValue, Method method, boolean allowRtexpr, String contextVar) throws Exception(Code)(Java Doc) String generateFragmentParameter(String string, boolean allowRtexpr) throws Exception(Code)(Java Doc) void generateIncludeParams(JspJavaWriter out, ArrayList params) throws Exception(Code)(Java Doc) String generateJstlValue(Class type, String value) throws Exception(Code)(Java Doc) protected String generateObject(Object obj)(Code)(Java Doc) String generateParameterValue(Class type, String value) throws Exception(Code)(Java Doc) String generateParameterValue(Class type, String value, boolean rtexpr, TagAttributeInfo attrInfo, boolean isELIgnored) throws Exception(Code)(Java Doc) void generateParentTag(JspJavaWriter out, TagInstance parent) throws IOException(Code)(Java Doc) protected String generateParentTag(TagInstance parent) throws IOException(Code)(Java Doc) public void generatePrologue(JspJavaWriter out) throws Exception(Code)(Java Doc) public void generatePrologueChildren(JspJavaWriter out) throws Exception(Code)(Java Doc) public void generatePrologueDeclare(JspJavaWriter out) throws Exception(Code)(Java Doc) String generateRTValue(Class type, Object value) throws Exception(Code)(Java Doc) void generateSetParameter(JspJavaWriter out, String obj, Object objValue, Method method, boolean allowRtexpr, String contextVar, boolean isFragment, TagAttributeInfo attrInfo) throws Exception(Code)(Java Doc) void generateSetParameter(JspJavaWriter out, String obj, String value, Method method, Class editorClass) throws Exception(Code)(Java Doc) public void generateStartLocation(JspJavaWriter out) throws IOException(Code)(Java Doc) public void generateStatic(JspJavaWriter out) throws Exception(Code)(Java Doc) String generateValue(Class type, String value) throws Exception(Code)(Java Doc) public String getBodyContent()(Code)(Java Doc) public ArrayList<JspNode> getChildren()(Code)(Java Doc) public String getCustomTagName()(Code)(Java Doc) public int getEndAttributeLine()(Code)(Java Doc) public int getEndLine()(Code)(Java Doc) public String getFilename()(Code)(Java Doc) public String getJsfBodyVar()(Code)(Java Doc) public String getJsfVar()(Code)(Java Doc) final public NamespaceContext getNamespaceContext()(Code)(Java Doc) public String getNamespacePrefix(String uri)(Code)(Java Doc) public JspNode getParent()(Code)(Java Doc) public String getParentTagName()(Code)(Java Doc) public JspNode getParentTagNode()(Code)(Java Doc) public QName getQName()(Code)(Java Doc) public String getRuntimeAttribute(String value) throws Exception(Code)(Java Doc) public JspSegmentNode getSegment()(Code)(Java Doc) public int getStartLine()(Code)(Java Doc) public String getStaticText()(Code)(Java Doc) public void getStaticText(CharBuffer cb)(Code)(Java Doc) public TagInstance getTag()(Code)(Java Doc) public String getTagName()(Code)(Java Doc) public boolean hasCustomTag()(Code)(Java Doc) public boolean hasDeferredAttribute(String value)(Code)(Java Doc) public boolean hasDeferredAttribute(String value, boolean isELIgnored)(Code)(Java Doc) public boolean hasELAttribute(String value)(Code)(Java Doc) public boolean hasELAttribute(String value, boolean isELIgnored)(Code)(Java Doc) public boolean hasNamespace(String prefix, String uri)(Code)(Java Doc) public boolean hasNamespace(QName name)(Code)(Java Doc) public boolean hasRuntimeAttribute(String value) throws JspParseException(Code)(Java Doc) public boolean hasScripting()(Code)(Java Doc) public boolean hasScripting(String value)(Code)(Java Doc) public boolean hasScripting(JspAttribute value)(Code)(Java Doc) public boolean hasScriptingElement()(Code)(Java Doc) public boolean hasTag()(Code)(Java Doc) protected String invokeFragment(JspFragmentNode frag) throws Exception(Code)(Java Doc) public boolean isInFragment()(Code)(Java Doc) public boolean isJsfParentRequired()(Code)(Java Doc) public boolean isJstl()(Code)(Java Doc) public boolean isPre21Taglib()(Code)(Java Doc) public boolean isSimpleTag()(Code)(Java Doc) public boolean isStatic()(Code)(Java Doc) protected Class loadClass(String type) throws JspParseException(Code)(Java Doc) public void printJspId(WriteStream os) throws IOException(Code)(Java Doc) abstract public void printXml(WriteStream os) throws IOException(Code)(Java Doc) public void printXmlAttribute(WriteStream os, String name, String text) throws IOException(Code)(Java Doc) public void printXmlText(WriteStream os, String text) throws IOException(Code)(Java Doc) public void setEndAttributeLocation(String filename, int line)(Code)(Java Doc) public void setEndLocation(String filename, int line)(Code)(Java Doc) public void setGenerator(JavaJspGenerator gen)(Code)(Java Doc) final public void setNamespace(Namespace ns)(Code)(Java Doc) public void setParent(JspNode parent)(Code)(Java Doc) public void setParseState(ParseState parseState)(Code)(Java Doc) public void setQName(QName name)(Code)(Java Doc) public void setStartLocation(Path sourcePath, String filename, int line)(Code)(Java Doc) String stringToValue(Class type, String obj)(Code)(Java Doc) public static String toELObject(String expr, Class type)(Code)(Java Doc) public String toString()(Code)(Java Doc) public String xmlAttrText(String text)(Code)(Java Doc) public String xmlText(String text)(Code)(Java Doc)
|
|
|