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 Details

    • JRCompilationUnit

      public JRCompilationUnit(String name)
      Creates a compilation unit.
  • Method Details

    • 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)