net.sf.jasperreports.engine.design
Class JRJdtCompiler
java.lang.Object
net.sf.jasperreports.engine.design.JRAbstractCompiler
net.sf.jasperreports.engine.design.JRAbstractJavaCompiler
net.sf.jasperreports.engine.design.JRJdtCompiler
- All Implemented Interfaces:
- JRCompiler
public class JRJdtCompiler
- extends JRAbstractJavaCompiler
- Version:
- $Id: JRJdtCompiler.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRJdtCompiler
public JRJdtCompiler(JasperReportsContext jasperReportsContext)
JRJdtCompiler
public JRJdtCompiler()
- Deprecated. Replaced by
JRJdtCompiler(JasperReportsContext).
compileUnits
protected String compileUnits(JRCompilationUnit[] units,
String classpath,
File tempDirFile)
- Description copied from class:
JRAbstractCompiler
- Compiles several expression evaluator units.
The result of the compilation should be set by calling
setCompileData on all compile units.
- Specified by:
compileUnits in class JRAbstractCompiler
- Parameters:
units - the compilation unitsclasspath - the compilation classpathtempDirFile - temporary directory
- Returns:
- a string containing compilation errors, or null if the compilation was successfull
getNameEnvironment
protected org.eclipse.jdt.internal.compiler.env.INameEnvironment getNameEnvironment(JRCompilationUnit[] units)
getCompilerRequestor
protected org.eclipse.jdt.internal.compiler.ICompilerRequestor getCompilerRequestor(JRCompilationUnit[] units,
StringBuffer problemBuffer)
getJdtSettings
protected Map<String,String> getJdtSettings()
getResource
protected InputStream getResource(String resourceName)
loadClass
protected Class<?> loadClass(String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
checkLanguage
protected void checkLanguage(String language)
throws JRException
- Description copied from class:
JRAbstractCompiler
- Checks that the report language is supported by the compiler.
- Specified by:
checkLanguage in class JRAbstractCompiler
- Parameters:
language - the report language
- Throws:
JRException
generateSourceCode
protected JRCompilationSourceCode generateSourceCode(JRSourceCompileTask sourceTask)
throws JRException
- Description copied from class:
JRAbstractCompiler
- Generates expression evaluator code.
- Specified by:
generateSourceCode in class JRAbstractCompiler
- Parameters:
sourceTask - the source code generation information
- Returns:
- generated expression evaluator code
- Throws:
JRException
getSourceFileName
protected String getSourceFileName(String unitName)
- Description copied from class:
JRAbstractCompiler
- 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 COMPILER_KEEP_JAVA_FILE is set, the generated source
will be saved in a file having the name returned by this method.
- Specified by:
getSourceFileName in class JRAbstractCompiler
- Parameters:
unitName - the unit name
- Returns:
- the source file name
getCompilerClass
protected String getCompilerClass()
- Overrides:
getCompilerClass in class JRAbstractCompiler
getJavaCompilationErrors
protected org.eclipse.jdt.core.compiler.IProblem[] getJavaCompilationErrors(org.eclipse.jdt.internal.compiler.CompilationResult result)
Copyright © 2012. All Rights Reserved.