Class JRCompilationUnit
java.lang.Object
net.sf.jasperreports.engine.design.JRCompilationUnit
Expression evaluator compilation unit used by report compilers.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the compilation source code unit.Returns the compilation data used for creating expression evaluators.Returns the compile task for the unit.getName()Returns the name of the unit.Returns the source code generated for the unit.Returns the file where the source code was saved.booleanvoidsetCompileData(Serializable compileData) Sets the compilation data used for creating expression evaluators.voidsetDirectEvaluations(Map<Integer, DirectExpressionEvaluation> directEvaluations) voidsetSource(JRCompilationSourceCode sourceCode, File sourceFile, JRSourceCompileTask compileTask)
-
Constructor Details
-
JRCompilationUnit
Creates a compilation unit.
-
-
Method Details
-
getName
Returns the name of the unit.- Returns:
- the name of the unit
-
getCompileName
-
getSourceCode
Returns the source code generated for the unit.- Returns:
- the source code generated for the unit
-
getCompilationSource
Returns the compilation source code unit.- Returns:
- the compilation source code
-
getSourceFile
Returns the file where the source code was saved.- Returns:
- the file where the source code was saved
-
setCompileData
Sets the compilation data used for creating expression evaluators.- Parameters:
compileData- the compilation data
-
getCompileData
Returns the compilation data used for creating expression evaluators.- Returns:
- the compilation data used for creating expression evaluators
-
getCompileTask
Returns the compile task for the unit.- Returns:
- the compile task
-
setSource
public void setSource(JRCompilationSourceCode sourceCode, File sourceFile, JRSourceCompileTask compileTask) -
hasSource
public boolean hasSource() -
getDirectEvaluations
-
setDirectEvaluations
-