Class StructsBatchCompiler


  • public class StructsBatchCompiler
    extends Object
    • Constructor Detail

      • StructsBatchCompiler

        public StructsBatchCompiler()
    • Method Detail

      • setCurrentClassLoader

        public void setCurrentClassLoader​(ClassLoader currentClassLoader)
      • setUseCurrentClassLoaderAsParent

        public void setUseCurrentClassLoaderAsParent​(boolean useCurrentClassLoaderAsParent)
      • getTempDirectory

        public String getTempDirectory()
      • setTempDirectory

        public void setTempDirectory​(String tempDirectory)
      • isWriteTraceFiles

        public boolean isWriteTraceFiles()
      • setWriteTraceFiles

        public void setWriteTraceFiles​(boolean writeTraceFiles)
      • setResourceSet

        public void setResourceSet​(org.eclipse.xtext.resource.XtextResourceSet resourceSet)
      • isDeleteTempDirectory

        public boolean isDeleteTempDirectory()
      • setDeleteTempDirectory

        public void setDeleteTempDirectory​(boolean deletetempDirectory)
      • getDebugWriter

        public Writer getDebugWriter()
      • setClassPath

        public void setClassPath​(String classPath)
      • setBootClassPath

        public void setBootClassPath​(String bootClassPath)
        Since:
        2.7
      • setOutputPath

        public void setOutputPath​(String outputPath)
      • setSourcePath

        public void setSourcePath​(String sourcePath)
      • setStructSourceRoot

        public void setStructSourceRoot​(String structSourceRoot)
      • getComplianceLevel

        protected String getComplianceLevel()
      • setVerbose

        public void setVerbose​(boolean verbose)
      • isVerbose

        protected boolean isVerbose()
      • getFileEncoding

        public String getFileEncoding()
      • setFileEncoding

        public void setFileEncoding​(String encoding)
      • compile

        public boolean compile()
      • loadStructsFiles

        protected org.eclipse.emf.ecore.resource.ResourceSet loadStructsFiles​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
      • createStubs

        protected File createStubs​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
      • preCompileStubs

        protected boolean preCompileStubs​(File tmpSourceDirectory,
                                          File classDirectory)
      • validate

        protected List<org.eclipse.xtext.validation.Issue> validate​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
      • installJvmTypeProvider

        @Deprecated
        protected void installJvmTypeProvider​(org.eclipse.xtext.resource.XtextResourceSet resourceSet,
                                              File tmpClassDirectory)
        Deprecated.
        Installs the complete JvmTypeProvider including index access into the ResourceSet. The lookup classpath is enhanced with the given tmp directory.
      • installJvmTypeProvider

        protected void installJvmTypeProvider​(org.eclipse.xtext.resource.XtextResourceSet resourceSet,
                                              File tmpClassDirectory,
                                              boolean skipIndexLookup)
        Installs the JvmTypeProvider optionally including index access into the ResourceSet. The lookup classpath is enhanced with the given tmp directory.
      • reportIssues

        protected void reportIssues​(Iterable<org.eclipse.xtext.validation.Issue> issues)
      • generateJavaFiles

        protected void generateJavaFiles​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
      • getResourceDescriptions

        protected org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions getResourceDescriptions​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
      • getStructsFile

        protected org.structs4java.structs4JavaDsl.StructsFile getStructsFile​(org.eclipse.emf.ecore.resource.Resource resource)
      • getClassPathEntries

        protected List<String> getClassPathEntries()
      • getBootClassPathEntries

        protected List<String> getBootClassPathEntries()
        Since:
        2.7
      • getSourcePathDirectories

        protected List<String> getSourcePathDirectories()
      • getStructsSourcePathDirectories

        protected List<String> getStructsSourcePathDirectories()
      • createTempDir

        protected File createTempDir​(String prefix)
      • deleteTmpFolders

        protected void deleteTmpFolders()
      • cleanFolder

        protected static boolean cleanFolder​(File parentFolder,
                                             FileFilter filter,
                                             boolean continueOnError,
                                             boolean deleteParentFolder)