Java Doc for JavaJspGenerator.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) 


java.lang.Object
   com.caucho.jsp.JspGenerator
      com.caucho.jsp.java.JavaJspGenerator

All known Subclasses:   com.caucho.jsp.java.JavaTagGenerator,
JavaJspGenerator
public class JavaJspGenerator extends JspGenerator (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.


Inner Class :static class MethodExpr
Inner Class :static class ValueExpr

Field Summary
final static  StringIE_CLSID
    
final static  StringIE_URL
    
final static  L10NL
    
final static  StringNS_URL
    
 boolean_alwaysModified
    
protected  ArrayList<Depend>_cacheDepends
    
protected  String_className
    
protected  JspPageConfig_config
    
protected  ArrayList<JspDeclaration>_declarations
    
protected  ArrayList<PersistentDependency>_depends
    
protected  String_fullClassName
    
protected  boolean_ideHack
    
protected  boolean_isCacheable
    
protected  boolean_isUncacheable
    
 long_lastModified
    
protected  ParseState_parseState
    
protected  String_pkg
    
static  HashMap<String, Class>_primitiveClasses
    
static  HashMap<String, String>_primitives
    
protected  JspNode_rootNode
    
protected  IntMap_strings
    
protected  int_tagId
    
protected  ParseTagManager_tagManager
    
protected  TagInstance_topTag
    
final static  Loggerlog
    

Constructor Summary
public  JavaJspGenerator(ParseTagManager tagManager)
    

Method Summary
public  voidaddBeanClass(String id, String typeName)
     Saves a bean's class for later introspection.
public  voidaddDeclaration(JspDeclaration decl)
     Adds a new Java declaration to the list.
public  voidaddDeclared(String var)
     Adds a declared variable.
public  voidaddDepend(Path path)
    
public  voidaddDepend(Class cl)
     Adds a dependency based on a class.
public  voidaddDepend(PersistentDependency depend)
    
public  intaddExpr(String expr)
     Adds an expression to the expression list.
public  intaddFragment(JspFragmentNode node)
    
protected  voidaddImport(String name)
    
public  intaddMethodExpr(String value, String sigString)
     Adds an expression to the expression list.
public  voidaddOptionalTaglib(String prefix, String uri)
     Adds a taglib.
public  intaddString(String string)
    
 voidaddTagFileClass(String cl)
    
public  voidaddTaglib(String prefix, String uri)
     Adds a taglib.
public  TaglibaddTaglib(String prefix, String uri, boolean isOptional)
     Adds a taglib.
public  TaglibaddTaglib(QName qname)
    
public  voidaddTaglibDir(String prefix, String tagdir)
     Adds a taglib.
public  intaddValueExpr(String value, String type)
     Adds an expression to the expression list.
public  StringaddXPathExpr(String value, NamespaceContext ns)
     Adds an expression to the expression list.
public  StringaddXPathExpr(com.caucho.xpath.Expr expr)
     Adds an expression to the expression list.
public  JspParseExceptionerror(String message)
    
public  JspParseExceptionerror(Exception e)
    
protected  voidfillSingleTaglibImports()
     As a convenience, when the Tag isn't in a package, import it automatically.
public  com.caucho.el.ExprgenExpr(String value)
    
protected  voidgenerate(Path path, String className)
     Generates the JSP page.
protected  voidgenerate(JspJavaWriter out)
     Generates the Java code.
protected  voidgenerateClassFooter(JspJavaWriter out)
     Completes the generated class: closing the main method, generating the dependencies and generating the constant strings.
protected  voidgenerateClassHeader(JspJavaWriter out)
     Generates the class header.
public  intgenerateJspId()
    
protected  voidgeneratePageFooter(JspJavaWriter out)
    
protected  voidgeneratePageHeader(JspJavaWriter out)
    
protected  voidgenerateStatic()
     Generates a static file.
 PathgetAppDir()
    
public  ClassgetBeanClass(String typeName)
     Loads a bean based on the class name.
 StringgetCharacterEncoding()
     Returns the character encoding.
public  ClassgetClass(String id)
    
 PathgetClassDir()
    
public  JspPageConfiggetConfig()
    
public  ArrayList<PersistentDependency>getDependList()
    
 StringgetDoctypePublic()
    
 StringgetDoctypeRootElement()
    
 StringgetDoctypeSystem()
    
public  ELContextgetELContext()
    
public  JspFragmentNodegetFragment(int index)
    
 PathgetGeneratedPath()
    
 StringgetPackagePrefix()
    
public  PageDatagetPageData()
     Returns the page's XML view.
public  ParseStategetParseState()
    
public  booleangetRecycleTags()
    
public  TagInstancegetRootTag()
    
public  StringgetSourceLines(Path source, int errorLine)
    
public  TagInfogetTag(QName qname)
     Returns the tag with the given qname.
public  ClassgetTagClass(QName qname)
     Returns the tag with the given qname.
public  ParseTagManagergetTagManager()
     Returns the taglib manager.
public  booleanhasScripting()
    
 booleanhasTags()
    
public  voidinit()
    
protected  voidinit(String className)
    
public  booleanisDeclared(String var)
     True if it's a declared variable.
public  booleanisJsfPrologueInit()
    
 booleanisOmitXmlDeclaration()
     Returns true if the XML declaration should be set.
public  booleanisStatic()
     Returns true if the JSP compilation has produced a static file.
public  booleanisStaticEncoding()
    
public  booleanisTag()
    
 booleanisXml()
     Returns true for XML.
 ClassloadBeanClass(String typeName)
    
 WriteStreamopenWriteStream()
     Opens a write stream to the *.java file we're generating.
 MethodresolveFunction(String prefix, String localName)
    
 voidsetDoctypePublic(String doctypePublic)
    
 voidsetDoctypeRootElement(String doctypeRootElement)
    
 voidsetDoctypeSystem(String doctypeSystem)
    
 voidsetIdeHack(boolean ideHack)
    
public  voidsetJsfPrologueInit(boolean isInit)
    
 voidsetOmitXmlDeclaration(boolean omitXml)
     Returns true if the XML declaration should be set.
public  voidsetPageConfig(JspPageConfig pageConfig)
    
protected  voidsetParseState(ParseState parseState)
    
 voidsetRequireSource(boolean requireSource)
    
public  voidsetRootNode(JspNode node)
     Sets the root JSP node.
 voidsetStaticEncoding(boolean staticEncoding)
    
public  voidsetTagManager(ParseTagManager tagManager)
     Sets the taglib manager.
public  intuniqueId()
    
public  voidvalidate()
     Validates the JSP page.

Field Detail
IE_CLSID
final static String IE_CLSID(Code)



IE_URL
final static String IE_URL(Code)



L
final static L10N L(Code)



NS_URL
final static String NS_URL(Code)



_alwaysModified
boolean _alwaysModified(Code)



_cacheDepends
protected ArrayList<Depend> _cacheDepends(Code)



_className
protected String _className(Code)



_config
protected JspPageConfig _config(Code)



_declarations
protected ArrayList<JspDeclaration> _declarations(Code)



_depends
protected ArrayList<PersistentDependency> _depends(Code)



_fullClassName
protected String _fullClassName(Code)



_ideHack
protected boolean _ideHack(Code)



_isCacheable
protected boolean _isCacheable(Code)



_isUncacheable
protected boolean _isUncacheable(Code)



_lastModified
long _lastModified(Code)



_parseState
protected ParseState _parseState(Code)



_pkg
protected String _pkg(Code)



_primitiveClasses
static HashMap<String, Class> _primitiveClasses(Code)



_primitives
static HashMap<String, String> _primitives(Code)



_rootNode
protected JspNode _rootNode(Code)



_strings
protected IntMap _strings(Code)



_tagId
protected int _tagId(Code)



_tagManager
protected ParseTagManager _tagManager(Code)



_topTag
protected TagInstance _topTag(Code)



log
final static Logger log(Code)




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




Method Detail
addBeanClass
public void addBeanClass(String id, String typeName) throws Exception(Code)
Saves a bean's class for later introspection.
Parameters:
  id - the bean id
Parameters:
  typeName - the bean's type



addDeclaration
public void addDeclaration(JspDeclaration decl)(Code)
Adds a new Java declaration to the list.



addDeclared
public void addDeclared(String var)(Code)
Adds a declared variable.



addDepend
public void addDepend(Path path)(Code)



addDepend
public void addDepend(Class cl)(Code)
Adds a dependency based on a class.



addDepend
public void addDepend(PersistentDependency depend)(Code)



addExpr
public int addExpr(String expr) throws JspParseException, ELException(Code)
Adds an expression to the expression list.



addFragment
public int addFragment(JspFragmentNode node)(Code)



addImport
protected void addImport(String name)(Code)



addMethodExpr
public int addMethodExpr(String value, String sigString) throws JspParseException, ELException(Code)
Adds an expression to the expression list.



addOptionalTaglib
public void addOptionalTaglib(String prefix, String uri) throws JspParseException(Code)
Adds a taglib.



addString
public int addString(String string)(Code)



addTagFileClass
void addTagFileClass(String cl)(Code)



addTaglib
public void addTaglib(String prefix, String uri) throws JspParseException(Code)
Adds a taglib.



addTaglib
public Taglib addTaglib(String prefix, String uri, boolean isOptional) throws JspParseException(Code)
Adds a taglib.



addTaglib
public Taglib addTaglib(QName qname) throws JspParseException(Code)



addTaglibDir
public void addTaglibDir(String prefix, String tagdir) throws JspParseException(Code)
Adds a taglib.



addValueExpr
public int addValueExpr(String value, String type) throws JspParseException, ELException(Code)
Adds an expression to the expression list.



addXPathExpr
public String addXPathExpr(String value, NamespaceContext ns) throws JspParseException, XPathParseException(Code)
Adds an expression to the expression list.



addXPathExpr
public String addXPathExpr(com.caucho.xpath.Expr expr) throws JspParseException(Code)
Adds an expression to the expression list.



error
public JspParseException error(String message)(Code)



error
public JspParseException error(Exception e)(Code)



fillSingleTaglibImports
protected void fillSingleTaglibImports() throws JspParseException(Code)
As a convenience, when the Tag isn't in a package, import it automatically.



genExpr
public com.caucho.el.Expr genExpr(String value) throws JspParseException, ELException(Code)



generate
protected void generate(Path path, String className) throws Exception(Code)
Generates the JSP page.



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



generateClassFooter
protected void generateClassFooter(JspJavaWriter out) throws Exception(Code)
Completes the generated class: closing the main method, generating the dependencies and generating the constant strings.
Parameters:
  doc - the XML document representing the JSP page.



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



generateJspId
public int generateJspId()(Code)



generatePageFooter
protected void generatePageFooter(JspJavaWriter out) throws IOException(Code)



generatePageHeader
protected void generatePageHeader(JspJavaWriter out) throws Exception(Code)
Prints the _jspService header



generateStatic
protected void generateStatic() throws Exception(Code)
Generates a static file.



getAppDir
Path getAppDir()(Code)



getBeanClass
public Class getBeanClass(String typeName) throws ClassNotFoundException(Code)
Loads a bean based on the class name.



getCharacterEncoding
String getCharacterEncoding()(Code)
Returns the character encoding.



getClass
public Class getClass(String id)(Code)



getClassDir
Path getClassDir()(Code)



getConfig
public JspPageConfig getConfig()(Code)



getDependList
public ArrayList<PersistentDependency> getDependList()(Code)



getDoctypePublic
String getDoctypePublic()(Code)
Gets the dtd public name



getDoctypeRootElement
String getDoctypeRootElement()(Code)
Gets the dtd root element name



getDoctypeSystem
String getDoctypeSystem()(Code)
Gets the dtd system name



getELContext
public ELContext getELContext()(Code)



getFragment
public JspFragmentNode getFragment(int index)(Code)



getGeneratedPath
Path getGeneratedPath() throws IOException(Code)



getPackagePrefix
String getPackagePrefix()(Code)



getPageData
public PageData getPageData() throws IOException(Code)
Returns the page's XML view.



getParseState
public ParseState getParseState()(Code)



getRecycleTags
public boolean getRecycleTags()(Code)



getRootTag
public TagInstance getRootTag()(Code)



getSourceLines
public String getSourceLines(Path source, int errorLine)(Code)



getTag
public TagInfo getTag(QName qname) throws JspParseException(Code)
Returns the tag with the given qname.



getTagClass
public Class getTagClass(QName qname) throws Exception(Code)
Returns the tag with the given qname.



getTagManager
public ParseTagManager getTagManager()(Code)
Returns the taglib manager.



hasScripting
public boolean hasScripting()(Code)



hasTags
boolean hasTags()(Code)



init
public void init()(Code)



init
protected void init(String className)(Code)



isDeclared
public boolean isDeclared(String var)(Code)
True if it's a declared variable.



isJsfPrologueInit
public boolean isJsfPrologueInit()(Code)



isOmitXmlDeclaration
boolean isOmitXmlDeclaration()(Code)
Returns true if the XML declaration should be set.



isStatic
public boolean isStatic()(Code)
Returns true if the JSP compilation has produced a static file.



isStaticEncoding
public boolean isStaticEncoding()(Code)



isTag
public boolean isTag()(Code)



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



loadBeanClass
Class loadBeanClass(String typeName)(Code)



openWriteStream
WriteStream openWriteStream() throws IOException(Code)
Opens a write stream to the *.java file we're generating.
Parameters:
  path - work directory path the write stream



resolveFunction
Method resolveFunction(String prefix, String localName)(Code)



setDoctypePublic
void setDoctypePublic(String doctypePublic)(Code)
Sets the dtd public name



setDoctypeRootElement
void setDoctypeRootElement(String doctypeRootElement)(Code)
Gets the dtd root element name



setDoctypeSystem
void setDoctypeSystem(String doctypeSystem)(Code)
Sets the dtd system name



setIdeHack
void setIdeHack(boolean ideHack)(Code)



setJsfPrologueInit
public void setJsfPrologueInit(boolean isInit)(Code)



setOmitXmlDeclaration
void setOmitXmlDeclaration(boolean omitXml)(Code)
Returns true if the XML declaration should be set.



setPageConfig
public void setPageConfig(JspPageConfig pageConfig)(Code)



setParseState
protected void setParseState(ParseState parseState)(Code)



setRequireSource
void setRequireSource(boolean requireSource)(Code)



setRootNode
public void setRootNode(JspNode node)(Code)
Sets the root JSP node.



setStaticEncoding
void setStaticEncoding(boolean staticEncoding)(Code)



setTagManager
public void setTagManager(ParseTagManager tagManager)(Code)
Sets the taglib manager.



uniqueId
public int uniqueId()(Code)



validate
public void validate() throws Exception(Code)
Validates the JSP page.



Fields inherited from com.caucho.jsp.JspGenerator
protected JspCompiler _jspCompiler(Code)(Java Doc)
protected JspCompilerInstance _jspCompilerInstance(Code)(Java Doc)
protected JspParser _jspParser(Code)(Java Doc)
protected LineMap _lineMap(Code)(Java Doc)

Methods inherited from com.caucho.jsp.JspGenerator
public void addDepend(PersistentDependency depend)(Code)(Java Doc)
abstract protected void generate(Path path, String className) throws Exception(Code)(Java Doc)
public TagInfo generateTagInfo(String className, TagLibraryInfo tag)(Code)(Java Doc)
public ArrayList<PersistentDependency> getDependList()(Code)(Java Doc)
public JspCompiler getJspCompiler()(Code)(Java Doc)
public JspCompilerInstance getJspCompilerInstance()(Code)(Java Doc)
public JspParser getJspParser()(Code)(Java Doc)
public LineMap getLineMap()(Code)(Java Doc)
abstract protected ParseState getParseState()(Code)(Java Doc)
public String getSourceLines(Path source, int errorLine)(Code)(Java Doc)
public boolean isELIgnore()(Code)(Java Doc)
public boolean isStatic()(Code)(Java Doc)
public void setJspCompiler(JspCompiler compiler)(Code)(Java Doc)
public void setJspCompilerInstance(JspCompilerInstance compiler)(Code)(Java Doc)
public void setJspParser(JspParser parser)(Code)(Java Doc)
abstract protected void setParseState(ParseState parseState)(Code)(Java Doc)
abstract public void validate() throws Exception(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.