Class JRCompilationUnit


  • public class JRCompilationUnit
    extends Object
    Expression evaluator compilation unit used by report compilers.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • 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
      • hasSource

        public boolean hasSource()