Class JRJdtCompiler

    • Field Detail

      • EXCEPTION_MESSAGE_KEY_CLASS_LOADING_ERROR

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_CLASS_LOADING_ERROR
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_NAME_ENVIRONMENT_ANSWER_INSTANCE_ERROR

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_NAME_ENVIRONMENT_ANSWER_INSTANCE_ERROR
        See Also:
        Constant Field Values
    • Method Detail

      • compileUnits

        protected java.lang.String compileUnits​(JRCompilationUnit[] units,
                                                java.lang.String classpath,
                                                java.io.File tempDirFile)
        Description copied from class: JRAbstractCompiler
        Compiles several expression evaluator units.

        The result of the compilation should be set by calling setCompileData on all compile units.

        Specified by:
        compileUnits in class JRAbstractCompiler
        Parameters:
        units - the compilation units
        classpath - the compilation classpath
        tempDirFile - temporary directory
        Returns:
        a string containing compilation errors, or null if the compilation was successfull
      • getNameEnvironment

        protected org.eclipse.jdt.internal.compiler.env.INameEnvironment getNameEnvironment​(JRCompilationUnit[] units)
      • getJdtSettings

        protected java.util.Map<java.lang.String,​java.lang.String> getJdtSettings()
      • getResource

        protected java.io.InputStream getResource​(java.lang.String resourceName)
      • loadClass

        protected java.lang.Class<?> loadClass​(java.lang.String className)
                                        throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException
      • getSourceFileName

        protected java.lang.String getSourceFileName​(java.lang.String unitName)
        Description copied from class: JRAbstractCompiler
        Returns the name of the source file where generated source code for an unit is saved.

        If the compiler needs source files for compilation or COMPILER_KEEP_JAVA_FILE is set, the generated source will be saved in a file having the name returned by this method.

        Specified by:
        getSourceFileName in class JRAbstractCompiler
        Parameters:
        unitName - the unit name
        Returns:
        the source file name