Package org.structs4java
Class StructsBatchCompiler
java.lang.Object
org.structs4java.StructsBatchCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleancleanFolder(File parentFolder, FileFilter filter, boolean continueOnError, boolean deleteParentFolder) booleancompile()protected FilecreateStubs(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) protected FilecreateTempDir(String prefix) protected voidprotected voidgenerateJavaFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) getDirectories(String path) protected Stringprotected Stringprotected voidinstallJvmTypeProvider(org.eclipse.xtext.resource.XtextResourceSet resourceSet, File tmpClassDirectory) Deprecated.protected voidinstallJvmTypeProvider(org.eclipse.xtext.resource.XtextResourceSet resourceSet, File tmpClassDirectory, boolean skipIndexLookup) Installs the JvmTypeProvider optionally including index access into theResourceSet.booleanprotected booleanbooleanprotected org.eclipse.emf.ecore.resource.ResourceSetloadStructsFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) protected booleanpreCompileStubs(File tmpSourceDirectory, File classDirectory) protected voidreportIssues(Iterable<org.eclipse.xtext.validation.Issue> issues) voidsetBootClassPath(String bootClassPath) voidsetClassPath(String classPath) voidsetCurrentClassLoader(ClassLoader currentClassLoader) voidsetDeleteTempDirectory(boolean deletetempDirectory) voidsetFileEncoding(String encoding) voidsetOutputPath(String outputPath) voidsetResourceSet(org.eclipse.xtext.resource.XtextResourceSet resourceSet) voidsetSourcePath(String sourcePath) voidsetSourceVersion(String version) voidsetStructFiles(List<File> structFiles) voidsetTargetVersion(String version) voidsetTempDirectory(String tempDirectory) voidsetUseCurrentClassLoaderAsParent(boolean useCurrentClassLoaderAsParent) voidsetVerbose(boolean verbose) voidsetWriteTraceFiles(boolean writeTraceFiles) protected List<org.eclipse.xtext.validation.Issue>validate(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
-
Constructor Details
-
StructsBatchCompiler
public StructsBatchCompiler()
-
-
Method Details
-
setCurrentClassLoader
-
setUseCurrentClassLoaderAsParent
public void setUseCurrentClassLoaderAsParent(boolean useCurrentClassLoaderAsParent) -
getTempDirectory
-
setTempDirectory
-
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
-
setClassPath
-
setBootClassPath
- Since:
- 2.7
-
setOutputPath
-
setSourcePath
-
setStructFiles
-
getSourceVersion
-
getTargetVersion
-
setSourceVersion
-
setTargetVersion
-
setVerbose
public void setVerbose(boolean verbose) -
isVerbose
protected boolean isVerbose() -
getFileEncoding
-
setFileEncoding
-
compile
public boolean compile() -
loadStructsFiles
protected org.eclipse.emf.ecore.resource.ResourceSet loadStructsFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) -
createStubs
-
preCompileStubs
-
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 theResourceSet. 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 theResourceSet. The lookup classpath is enhanced with the given tmp directory. -
reportIssues
-
generateJavaFiles
protected void generateJavaFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) -
getClassPathEntries
-
getBootClassPathEntries
- Since:
- 2.7
-
getSourcePathDirectories
-
getDirectories
-
createTempDir
-
deleteTmpFolders
protected void deleteTmpFolders() -
cleanFolder
protected static boolean cleanFolder(File parentFolder, FileFilter filter, boolean continueOnError, boolean deleteParentFolder)
-