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)JRCompilationUnit(java.lang.String name, JRCompilationSourceCode sourceCode, java.io.File sourceFile, java.util.List<JRExpression> expressions, JRSourceCompileTask compileTask)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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.JRSourceCompileTaskgetCompileTask()Returns the compile task for the unit.java.util.Map<java.lang.Integer,DirectExpressionEvaluation>getDirectEvaluations()java.util.List<JRExpression>getExpressions()Deprecated.in favor ofJRSourceCompileTask.getExpressions()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)
-
-
-
Constructor Detail
-
JRCompilationUnit
@Deprecated public JRCompilationUnit(java.lang.String name, JRCompilationSourceCode sourceCode, java.io.File sourceFile, java.util.List<JRExpression> expressions, JRSourceCompileTask compileTask)Deprecated.in favor ofJRCompilationUnit(String)andsetSource(JRCompilationSourceCode, File, JRSourceCompileTask). Expressions are available viaJRSourceCompileTask.getExpressions()Creates a compilation unit.- Parameters:
name- the name of the unitsourceCode- the source code generated for the unitsourceFile- the file where the source code was savedexpressions- the list of expressionscompileTask- the compile task for the unit
-
JRCompilationUnit
public JRCompilationUnit(java.lang.String name)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the unit.- Returns:
- the name of the unit
-
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
-
getExpressions
@Deprecated public java.util.List<JRExpression> getExpressions()
Deprecated.in favor ofJRSourceCompileTask.getExpressions()Returns the list of expressions.- Returns:
- the list of expressions
-
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)
-
-