Class JRCompilationUnit
- java.lang.Object
-
- net.sf.jasperreports.engine.design.JRCompilationUnit
-
public class JRCompilationUnit extends Object
Expression evaluator compilation unit used by report compilers.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JRCompilationUnit(String name)Creates a compilation unit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JRCompilationSourceCodegetCompilationSource()Returns the compilation source code unit.SerializablegetCompileData()Returns the compilation data used for creating expression evaluators.StringgetCompileName()JRSourceCompileTaskgetCompileTask()Returns the compile task for the unit.Map<Integer,DirectExpressionEvaluation>getDirectEvaluations()StringgetName()Returns the name of the unit.StringgetSourceCode()Returns the source code generated for the unit.FilegetSourceFile()Returns the file where the source code was saved.booleanhasSource()voidsetCompileData(Serializable compileData)Sets the compilation data used for creating expression evaluators.voidsetDirectEvaluations(Map<Integer,DirectExpressionEvaluation> directEvaluations)voidsetSource(JRCompilationSourceCode sourceCode, File sourceFile, JRSourceCompileTask compileTask)
-
-
-
Constructor Detail
-
JRCompilationUnit
public JRCompilationUnit(String name)
Creates a compilation unit.
-
-
Method Detail
-
getName
public String getName()
Returns the name of the unit.- Returns:
- the name of the unit
-
getCompileName
public String getCompileName()
-
getSourceCode
public String getSourceCode()
Returns the source code generated for the unit.- Returns:
- the source code generated for the unit
-
getCompilationSource
public JRCompilationSourceCode getCompilationSource()
Returns the compilation source code unit.- Returns:
- the compilation source code
-
getSourceFile
public File getSourceFile()
Returns the file where the source code was saved.- Returns:
- the file where the source code was saved
-
setCompileData
public void setCompileData(Serializable compileData)
Sets the compilation data used for creating expression evaluators.- Parameters:
compileData- the compilation data
-
getCompileData
public Serializable getCompileData()
Returns the compilation data used for creating expression evaluators.- Returns:
- the compilation data used for creating expression evaluators
-
getCompileTask
public JRSourceCompileTask 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
public Map<Integer,DirectExpressionEvaluation> getDirectEvaluations()
-
setDirectEvaluations
public void setDirectEvaluations(Map<Integer,DirectExpressionEvaluation> directEvaluations)
-
-