Java Doc for JavaTagGenerator.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » jsp » java » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.jsp.java 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.caucho.jsp.java.JavaJspGenerator
   com.caucho.jsp.java.JavaTagGenerator

JavaTagGenerator
public class JavaTagGenerator extends JavaJspGenerator (Code)
Generates JSP code. JavaGenerator, JavaScriptGenerator, and StaticGenerator specialize the JspGenerator for language-specific requirements.

JspParser parses the JSP file into an XML-DOM tree. JspGenerator generates code from that tree.



Field Summary
final static  L10NL
    
final static  Loggerlog
    

Constructor Summary
public  JavaTagGenerator(ParseTagManager tagManager)
    

Method Summary
public  voidaddAttribute(TldAttribute attribute)
     Adds an attribute.
public  voidaddVariable(TldVariable var)
     Adds a variable.
public  TldAttributefindAttribute(String name)
     Finds an attribute.
public  TldVariablefindVariable(String name)
     Finds a variable.
protected  voidgenerate(JspJavaWriter out)
     Generates the Java code.
protected  voidgenerateAttributes(JspJavaWriter out)
     Generates the attribute definitions.
protected  voidgenerateClassHeader(JspJavaWriter out)
     Generates the class header.
protected  voidgenerateDoTag(JspJavaWriter out, JspNode node)
    
protected  voidgenerateDynamicAttributes(JspJavaWriter out)
     Generates the attribute definitions.
protected  voidgeneratePrologue(JspJavaWriter out)
    
protected  voidgenerateStaticDoTag(JspJavaWriter out, JspNode node)
    
protected  voidgenerateTagAttributes(JspJavaWriter out)
     Generates the attribute definitions.
public  TagInfogenerateTagInfo(String className, TagLibraryInfo taglib)
    
protected  voidgenerateTagInfo(JspJavaWriter out)
     Generates the attribute definitions.
protected  voidgenerateTagLibrary(JspJavaWriter out)
     Generates the attribute definitions.
protected  voidgenerateTagVariablesAtEnd(JspJavaWriter out)
     Generates the variable setting.
public  ArrayList<TldAttribute>getAttributes()
     Returns the attributes.
public  StringgetBodyContent()
     Gets the body content.
public  StringgetDescription()
    
public  StringgetDisplayName()
    
public  StringgetDynamicAttributes()
     Gets the body content.
public  StringgetExample()
    
public  StringgetLargeIcon()
    
public  StringgetSmallIcon()
    
public  ArrayList<TldVariable>getVariables()
     Returns the variables.
public  voidinit()
    
protected  booleanisStaticDoTag()
    
public  booleanisTag()
    
 booleanisXml()
     Returns true for XML.
public  voidsetBodyContent(String bodyContent)
     Sets the body content.
public  voidsetDescription(String description)
     Returns true if the XML declaration should be ignored.
public  voidsetDisplayName(String displayName)
    
public  voidsetDynamicAttributes(String dynamicAttributes)
    
public  voidsetExample(String example)
    
public  voidsetLargeIcon(String largeIcon)
    
public  voidsetSmallIcon(String smallIcon)
    

Field Detail
L
final static L10N L(Code)



log
final static Logger log(Code)




Constructor Detail
JavaTagGenerator
public JavaTagGenerator(ParseTagManager tagManager)(Code)




Method Detail
addAttribute
public void addAttribute(TldAttribute attribute)(Code)
Adds an attribute.



addVariable
public void addVariable(TldVariable var)(Code)
Adds a variable.



findAttribute
public TldAttribute findAttribute(String name)(Code)
Finds an attribute.



findVariable
public TldVariable findVariable(String name)(Code)
Finds a variable.



generate
protected void generate(JspJavaWriter out) throws Exception(Code)
Generates the Java code.



generateAttributes
protected void generateAttributes(JspJavaWriter out) throws IOException, JspParseException(Code)
Generates the attribute definitions.
Parameters:
  out - the writer to the .java source



generateClassHeader
protected void generateClassHeader(JspJavaWriter out) throws IOException, JspParseException(Code)
Generates the class header.
Parameters:
  doc - the XML document representing the JSP page.



generateDoTag
protected void generateDoTag(JspJavaWriter out, JspNode node) throws Exception(Code)
Prints the _jspService header



generateDynamicAttributes
protected void generateDynamicAttributes(JspJavaWriter out) throws IOException, JspParseException(Code)
Generates the attribute definitions.
Parameters:
  out - the writer to the .java source



generatePrologue
protected void generatePrologue(JspJavaWriter out) throws Exception(Code)
Generates prologue stuff
Parameters:
  out - the writer to the .java source



generateStaticDoTag
protected void generateStaticDoTag(JspJavaWriter out, JspNode node) throws Exception(Code)
Prints the _jspService header



generateTagAttributes
protected void generateTagAttributes(JspJavaWriter out) throws IOException, JspParseException(Code)
Generates the attribute definitions.
Parameters:
  out - the writer to the .java source



generateTagInfo
public TagInfo generateTagInfo(String className, TagLibraryInfo taglib)(Code)



generateTagInfo
protected void generateTagInfo(JspJavaWriter out) throws IOException, JspParseException(Code)
Generates the attribute definitions.
Parameters:
  out - the writer to the .java source



generateTagLibrary
protected void generateTagLibrary(JspJavaWriter out) throws IOException, JspParseException(Code)
Generates the attribute definitions.
Parameters:
  out - the writer to the .java source



generateTagVariablesAtEnd
protected void generateTagVariablesAtEnd(JspJavaWriter out) throws IOException, JspParseException(Code)
Generates the variable setting.
Parameters:
  out - the writer to the .java source



getAttributes
public ArrayList<TldAttribute> getAttributes()(Code)
Returns the attributes.



getBodyContent
public String getBodyContent()(Code)
Gets the body content.



getDescription
public String getDescription()(Code)



getDisplayName
public String getDisplayName()(Code)



getDynamicAttributes
public String getDynamicAttributes()(Code)
Gets the body content.



getExample
public String getExample()(Code)



getLargeIcon
public String getLargeIcon()(Code)



getSmallIcon
public String getSmallIcon()(Code)



getVariables
public ArrayList<TldVariable> getVariables()(Code)
Returns the variables.



init
public void init()(Code)



isStaticDoTag
protected boolean isStaticDoTag()(Code)



isTag
public boolean isTag()(Code)



isXml
boolean isXml()(Code)
Returns true for XML.



setBodyContent
public void setBodyContent(String bodyContent)(Code)
Sets the body content.



setDescription
public void setDescription(String description)(Code)
Returns true if the XML declaration should be ignored.



setDisplayName
public void setDisplayName(String displayName)(Code)



setDynamicAttributes
public void setDynamicAttributes(String dynamicAttributes)(Code)
Sets the name of the dynamic attributes map



setExample
public void setExample(String example)(Code)



setLargeIcon
public void setLargeIcon(String largeIcon)(Code)



setSmallIcon
public void setSmallIcon(String smallIcon)(Code)



Fields inherited from com.caucho.jsp.java.JavaJspGenerator
final static String IE_CLSID(Code)(Java Doc)
final static String IE_URL(Code)(Java Doc)
final static L10N L(Code)(Java Doc)
final static String NS_URL(Code)(Java Doc)
boolean _alwaysModified(Code)(Java Doc)
protected ArrayList<Depend> _cacheDepends(Code)(Java Doc)
protected String _className(Code)(Java Doc)
protected JspPageConfig _config(Code)(Java Doc)
protected ArrayList<JspDeclaration> _declarations(Code)(Java Doc)
protected ArrayList<PersistentDependency> _depends(Code)(Java Doc)
protected String _fullClassName(Code)(Java Doc)
protected boolean _ideHack(Code)(Java Doc)
protected boolean _isCacheable(Code)(Java Doc)
protected boolean _isUncacheable(Code)(Java Doc)
long _lastModified(Code)(Java Doc)
protected ParseState _parseState(Code)(Java Doc)
protected String _pkg(Code)(Java Doc)
static HashMap<String, Class> _primitiveClasses(Code)(Java Doc)
static HashMap<String, String> _primitives(Code)(Java Doc)
protected JspNode _rootNode(Code)(Java Doc)
protected IntMap _strings(Code)(Java Doc)
protected int _tagId(Code)(Java Doc)
protected ParseTagManager _tagManager(Code)(Java Doc)
protected TagInstance _topTag(Code)(Java Doc)
final static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.jsp.java.JavaJspGenerator
public void addBeanClass(String id, String typeName) throws Exception(Code)(Java Doc)
public void addDeclaration(JspDeclaration decl)(Code)(Java Doc)
public void addDeclared(String var)(Code)(Java Doc)
public void addDepend(Path path)(Code)(Java Doc)
public void addDepend(Class cl)(Code)(Java Doc)
public void addDepend(PersistentDependency depend)(Code)(Java Doc)
public int addExpr(String expr) throws JspParseException, ELException(Code)(Java Doc)
public int addFragment(JspFragmentNode node)(Code)(Java Doc)
protected void addImport(String name)(Code)(Java Doc)
public int addMethodExpr(String value, String sigString) throws JspParseException, ELException(Code)(Java Doc)
public void addOptionalTaglib(String prefix, String uri) throws JspParseException(Code)(Java Doc)
public int addString(String string)(Code)(Java Doc)
void addTagFileClass(String cl)(Code)(Java Doc)
public void addTaglib(String prefix, String uri) throws JspParseException(Code)(Java Doc)
public Taglib addTaglib(String prefix, String uri, boolean isOptional) throws JspParseException(Code)(Java Doc)
public Taglib addTaglib(QName qname) throws JspParseException(Code)(Java Doc)
public void addTaglibDir(String prefix, String tagdir) throws JspParseException(Code)(Java Doc)
public int addValueExpr(String value, String type) throws JspParseException, ELException(Code)(Java Doc)
public String addXPathExpr(String value, NamespaceContext ns) throws JspParseException, XPathParseException(Code)(Java Doc)
public String addXPathExpr(com.caucho.xpath.Expr expr) throws JspParseException(Code)(Java Doc)
public JspParseException error(String message)(Code)(Java Doc)
public JspParseException error(Exception e)(Code)(Java Doc)
protected void fillSingleTaglibImports() throws JspParseException(Code)(Java Doc)
public com.caucho.el.Expr genExpr(String value) throws JspParseException, ELException(Code)(Java Doc)
protected void generate(Path path, String className) throws Exception(Code)(Java Doc)
protected void generate(JspJavaWriter out) throws Exception(Code)(Java Doc)
protected void generateClassFooter(JspJavaWriter out) throws Exception(Code)(Java Doc)
protected void generateClassHeader(JspJavaWriter out) throws IOException, JspParseException(Code)(Java Doc)
public int generateJspId()(Code)(Java Doc)
protected void generatePageFooter(JspJavaWriter out) throws IOException(Code)(Java Doc)
protected void generatePageHeader(JspJavaWriter out) throws Exception(Code)(Java Doc)
protected void generateStatic() throws Exception(Code)(Java Doc)
Path getAppDir()(Code)(Java Doc)
public Class getBeanClass(String typeName) throws ClassNotFoundException(Code)(Java Doc)
String getCharacterEncoding()(Code)(Java Doc)
public Class getClass(String id)(Code)(Java Doc)
Path getClassDir()(Code)(Java Doc)
public JspPageConfig getConfig()(Code)(Java Doc)
public ArrayList<PersistentDependency> getDependList()(Code)(Java Doc)
String getDoctypePublic()(Code)(Java Doc)
String getDoctypeRootElement()(Code)(Java Doc)
String getDoctypeSystem()(Code)(Java Doc)
public ELContext getELContext()(Code)(Java Doc)
public JspFragmentNode getFragment(int index)(Code)(Java Doc)
Path getGeneratedPath() throws IOException(Code)(Java Doc)
String getPackagePrefix()(Code)(Java Doc)
public PageData getPageData() throws IOException(Code)(Java Doc)
public ParseState getParseState()(Code)(Java Doc)
public boolean getRecycleTags()(Code)(Java Doc)
public TagInstance getRootTag()(Code)(Java Doc)
public String getSourceLines(Path source, int errorLine)(Code)(Java Doc)
public TagInfo getTag(QName qname) throws JspParseException(Code)(Java Doc)
public Class getTagClass(QName qname) throws Exception(Code)(Java Doc)
public ParseTagManager getTagManager()(Code)(Java Doc)
public boolean hasScripting()(Code)(Java Doc)
boolean hasTags()(Code)(Java Doc)
public void init()(Code)(Java Doc)
protected void init(String className)(Code)(Java Doc)
public boolean isDeclared(String var)(Code)(Java Doc)
public boolean isJsfPrologueInit()(Code)(Java Doc)
boolean isOmitXmlDeclaration()(Code)(Java Doc)
public boolean isStatic()(Code)(Java Doc)
public boolean isStaticEncoding()(Code)(Java Doc)
public boolean isTag()(Code)(Java Doc)
boolean isXml()(Code)(Java Doc)
Class loadBeanClass(String typeName)(Code)(Java Doc)
WriteStream openWriteStream() throws IOException(Code)(Java Doc)
Method resolveFunction(String prefix, String localName)(Code)(Java Doc)
void setDoctypePublic(String doctypePublic)(Code)(Java Doc)
void setDoctypeRootElement(String doctypeRootElement)(Code)(Java Doc)
void setDoctypeSystem(String doctypeSystem)(Code)(Java Doc)
void setIdeHack(boolean ideHack)(Code)(Java Doc)
public void setJsfPrologueInit(boolean isInit)(Code)(Java Doc)
void setOmitXmlDeclaration(boolean omitXml)(Code)(Java Doc)
public void setPageConfig(JspPageConfig pageConfig)(Code)(Java Doc)
protected void setParseState(ParseState parseState)(Code)(Java Doc)
void setRequireSource(boolean requireSource)(Code)(Java Doc)
public void setRootNode(JspNode node)(Code)(Java Doc)
void setStaticEncoding(boolean staticEncoding)(Code)(Java Doc)
public void setTagManager(ParseTagManager tagManager)(Code)(Java Doc)
public int uniqueId()(Code)(Java Doc)
public void validate() throws Exception(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.