public class StructsBatchCompiler extends Object
| Constructor and Description |
|---|
StructsBatchCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
cleanFolder(File parentFolder,
FileFilter filter,
boolean continueOnError,
boolean deleteParentFolder) |
boolean |
compile() |
protected File |
createStubs(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected File |
createTempDir(String prefix) |
protected void |
deleteTmpFolders() |
protected void |
generateJavaFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected List<String> |
getBootClassPathEntries() |
protected List<String> |
getClassPathEntries() |
protected String |
getComplianceLevel() |
Writer |
getDebugWriter() |
protected List<String> |
getDirectories(String path) |
String |
getFileEncoding() |
protected org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions |
getResourceDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected List<String> |
getSourcePathDirectories() |
protected org.structs4java.structs4JavaDsl.StructsFile |
getStructsFile(org.eclipse.emf.ecore.resource.Resource resource) |
protected List<String> |
getStructsSourcePathDirectories() |
String |
getTempDirectory() |
protected void |
installJvmTypeProvider(org.eclipse.xtext.resource.XtextResourceSet resourceSet,
File tmpClassDirectory)
Deprecated.
|
protected void |
installJvmTypeProvider(org.eclipse.xtext.resource.XtextResourceSet resourceSet,
File tmpClassDirectory,
boolean skipIndexLookup)
Installs the JvmTypeProvider optionally including index access into the
ResourceSet. |
boolean |
isDeleteTempDirectory() |
protected boolean |
isVerbose() |
boolean |
isWriteTraceFiles() |
protected org.eclipse.emf.ecore.resource.ResourceSet |
loadStructsFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected boolean |
preCompileStubs(File tmpSourceDirectory,
File classDirectory) |
protected void |
reportIssues(Iterable<org.eclipse.xtext.validation.Issue> issues) |
void |
setBootClassPath(String bootClassPath) |
void |
setClassPath(String classPath) |
void |
setCurrentClassLoader(ClassLoader currentClassLoader) |
void |
setDeleteTempDirectory(boolean deletetempDirectory) |
void |
setFileEncoding(String encoding) |
void |
setOutputPath(String outputPath) |
void |
setResourceSet(org.eclipse.xtext.resource.XtextResourceSet resourceSet) |
void |
setSourcePath(String sourcePath) |
void |
setStructSourceRoot(String structSourceRoot) |
void |
setTempDirectory(String tempDirectory) |
void |
setUseCurrentClassLoaderAsParent(boolean useCurrentClassLoaderAsParent) |
void |
setVerbose(boolean verbose) |
void |
setWriteTraceFiles(boolean writeTraceFiles) |
protected List<org.eclipse.xtext.validation.Issue> |
validate(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
public void setCurrentClassLoader(ClassLoader currentClassLoader)
public void setUseCurrentClassLoaderAsParent(boolean useCurrentClassLoaderAsParent)
public String getTempDirectory()
public void setTempDirectory(String tempDirectory)
public boolean isWriteTraceFiles()
public void setWriteTraceFiles(boolean writeTraceFiles)
public void setResourceSet(org.eclipse.xtext.resource.XtextResourceSet resourceSet)
public boolean isDeleteTempDirectory()
public void setDeleteTempDirectory(boolean deletetempDirectory)
public Writer getDebugWriter()
public void setClassPath(String classPath)
public void setBootClassPath(String bootClassPath)
public void setOutputPath(String outputPath)
public void setSourcePath(String sourcePath)
public void setStructSourceRoot(String structSourceRoot)
protected String getComplianceLevel()
public void setVerbose(boolean verbose)
protected boolean isVerbose()
public String getFileEncoding()
public void setFileEncoding(String encoding)
public boolean compile()
protected org.eclipse.emf.ecore.resource.ResourceSet loadStructsFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected File createStubs(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected List<org.eclipse.xtext.validation.Issue> validate(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
@Deprecated protected void installJvmTypeProvider(org.eclipse.xtext.resource.XtextResourceSet resourceSet, File tmpClassDirectory)
ResourceSet. The lookup classpath is enhanced with the given tmp
directory.protected void installJvmTypeProvider(org.eclipse.xtext.resource.XtextResourceSet resourceSet,
File tmpClassDirectory,
boolean skipIndexLookup)
ResourceSet. The lookup classpath is enhanced with the given tmp
directory.protected void reportIssues(Iterable<org.eclipse.xtext.validation.Issue> issues)
protected void generateJavaFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions getResourceDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected org.structs4java.structs4JavaDsl.StructsFile getStructsFile(org.eclipse.emf.ecore.resource.Resource resource)
protected void deleteTmpFolders()
protected static boolean cleanFolder(File parentFolder, FileFilter filter, boolean continueOnError, boolean deleteParentFolder)
Copyright © 2018. All rights reserved.