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