Java Doc for JRAbstractCompiler.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » design » 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 » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine.design 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jasperreports.engine.design.JRAbstractCompiler

All known Subclasses:   net.sf.jasperreports.compilers.JRBshCompiler,  net.sf.jasperreports.engine.design.JRAbstractJavaCompiler,
JRAbstractCompiler
abstract public class JRAbstractCompiler implements JRCompiler(Code)
Base class for report compilers.
author:
   Lucian Chirita (lucianc@users.sourceforge.net)
version:
   $Id: JRAbstractCompiler.java 1625 2007-03-09 17:21:31Z lucianc $



Constructor Summary
protected  JRAbstractCompiler(boolean needsSourceFiles)
     Constructor.

Method Summary
abstract protected  voidcheckLanguage(String language)
     Checks that the report language is supported by the compiler.
final public  JasperReportcompileReport(JasperDesign jasperDesign)
    
abstract protected  StringcompileUnits(JRCompilationUnit[] units, String classpath, File tempDirFile)
     Compiles several expression evaluator units.
abstract protected  JRCompilationSourceCodegenerateSourceCode(JRSourceCompileTask sourceTask)
     Generates expression evaluator code.
protected  StringgetCompilerClass()
    
abstract protected  StringgetSourceFileName(String unitName)
     Returns the name of the source file where generated source code for an unit is saved.
public static  StringgetUnitName(JasperReport report, JRDataset dataset)
     Returns the name of the expression evaluator unit for a dataset of a report.
protected static  StringgetUnitName(JRReport report, JRDataset dataset, String nameSuffix)
    
public static  StringgetUnitName(JasperReport report, JRCrosstab crosstab)
     Returns the name of the expression evaluator unit for a crosstab of a report.
protected static  StringgetUnitName(JRReport report, JRCrosstab crosstab, JRExpressionCollector expressionCollector, String nameSuffix)
    
protected static  StringgetUnitName(JRReport report, int crosstabId, String nameSuffix)
    
public  JREvaluatorloadEvaluator(JasperReport jasperReport)
    
public  JREvaluatorloadEvaluator(JasperReport jasperReport, JRDataset dataset)
    
public  JREvaluatorloadEvaluator(JasperReport jasperReport, JRCrosstab crosstab)
    
abstract protected  JREvaluatorloadEvaluator(Serializable compileData, String unitName)
     Creates an expression evaluator instance from data saved when the report was compiled.


Constructor Detail
JRAbstractCompiler
protected JRAbstractCompiler(boolean needsSourceFiles)(Code)
Constructor.
Parameters:
  needsSourceFiles - whether the compiler needs source files or is able to do in memory compilation

If true, the generated code is saved in source files to be used by the compiler.





Method Detail
checkLanguage
abstract protected void checkLanguage(String language) throws JRException(Code)
Checks that the report language is supported by the compiler.
Parameters:
  language - the report language
throws:
  JRException -



compileReport
final public JasperReport compileReport(JasperDesign jasperDesign) throws JRException(Code)



compileUnits
abstract protected String compileUnits(JRCompilationUnit[] units, String classpath, File tempDirFile) throws JRException(Code)
Compiles several expression evaluator units.

The result of the compilation should be set by calling JRCompilationUnit.setCompileData(Serializable) setCompileData on all compile units.
Parameters:
  units - the compilation units
Parameters:
  classpath - the compilation classpath
Parameters:
  tempDirFile - temporary directory a string containing compilation errors, or null if the compilation was successfull
throws:
  JRException -




generateSourceCode
abstract protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask) throws JRException(Code)
Generates expression evaluator code.
Parameters:
  sourceTask - the source code generation information generated expression evaluator code
throws:
  JRException -



getCompilerClass
protected String getCompilerClass()(Code)



getSourceFileName
abstract protected String getSourceFileName(String unitName)(Code)
Returns the name of the source file where generated source code for an unit is saved.

If the compiler needs source files for compilation or JRProperties.COMPILER_KEEP_JAVA_FILE COMPILER_KEEP_JAVA_FILE is set, the generated source will be saved in a file having the name returned by this method.
Parameters:
  unitName - the unit name the source file name




getUnitName
public static String getUnitName(JasperReport report, JRDataset dataset)(Code)
Returns the name of the expression evaluator unit for a dataset of a report.
Parameters:
  report - the report
Parameters:
  dataset - the dataset the generated expression evaluator unit name



getUnitName
protected static String getUnitName(JRReport report, JRDataset dataset, String nameSuffix)(Code)



getUnitName
public static String getUnitName(JasperReport report, JRCrosstab crosstab)(Code)
Returns the name of the expression evaluator unit for a crosstab of a report.
Parameters:
  report - the report
Parameters:
  crosstab - the crosstab the generated expression evaluator unit name



getUnitName
protected static String getUnitName(JRReport report, JRCrosstab crosstab, JRExpressionCollector expressionCollector, String nameSuffix)(Code)



getUnitName
protected static String getUnitName(JRReport report, int crosstabId, String nameSuffix)(Code)



loadEvaluator
public JREvaluator loadEvaluator(JasperReport jasperReport) throws JRException(Code)



loadEvaluator
public JREvaluator loadEvaluator(JasperReport jasperReport, JRDataset dataset) throws JRException(Code)



loadEvaluator
public JREvaluator loadEvaluator(JasperReport jasperReport, JRCrosstab crosstab) throws JRException(Code)



loadEvaluator
abstract protected JREvaluator loadEvaluator(Serializable compileData, String unitName) throws JRException(Code)
Creates an expression evaluator instance from data saved when the report was compiled.
Parameters:
  compileData - the data saved when the report was compiled
Parameters:
  unitName - the evaluator unit name an expression evaluator instance
throws:
  JRException -



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.