Class StructsBatchCompiler

java.lang.Object
org.structs4java.StructsBatchCompiler

public class StructsBatchCompiler extends Object
  • Constructor Details

    • StructsBatchCompiler

      public StructsBatchCompiler()
  • Method Details

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

      public void setStructFiles(List<File> structFiles)
    • getSourceVersion

      protected String getSourceVersion()
    • getTargetVersion

      protected String getTargetVersion()
    • setSourceVersion

      public void setSourceVersion(String version)
    • setTargetVersion

      public void setTargetVersion(String version)
    • 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)
    • getClassPathEntries

      protected List<String> getClassPathEntries()
    • getBootClassPathEntries

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

      protected List<String> getSourcePathDirectories()
    • getDirectories

      protected List<String> getDirectories(String path)
    • createTempDir

      protected File createTempDir(String prefix)
    • deleteTmpFolders

      protected void deleteTmpFolders()
    • cleanFolder

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