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 JRCompilationSourceCode
getCompilationSource()
Returns the compilation source code unit.Serializable
getCompileData()
Returns the compilation data used for creating expression evaluators.String
getCompileName()
JRSourceCompileTask
getCompileTask()
Returns the compile task for the unit.Map<Integer,DirectExpressionEvaluation>
getDirectEvaluations()
String
getName()
Returns the name of the unit.String
getSourceCode()
Returns the source code generated for the unit.File
getSourceFile()
Returns the file where the source code was saved.boolean
hasSource()
void
setCompileData(Serializable compileData)
Sets the compilation data used for creating expression evaluators.void
setDirectEvaluations(Map<Integer,DirectExpressionEvaluation> directEvaluations)
void
setSource(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)
-
-