org.eclipse.xtext.xtend2.compiler.batch
Class Xtend2BatchCompiler
java.lang.Object
org.eclipse.xtext.xtend2.compiler.batch.Xtend2BatchCompiler
public class Xtend2BatchCompiler
- extends java.lang.Object
- Author:
- Michael Clay - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCEPT_ALL_FILTER
protected static final java.io.FileFilter ACCEPT_ALL_FILTER
resourceSetProvider
@Inject
protected com.google.inject.Provider<org.eclipse.emf.ecore.resource.ResourceSet> resourceSetProvider
javaIoFileSystemAccessProvider
@Inject
protected com.google.inject.Provider<JavaIoFileSystemAccess> javaIoFileSystemAccessProvider
fileExtensionProvider
@Inject
protected FileExtensionProvider fileExtensionProvider
resourceSetDescriptionsProvider
@Inject
protected com.google.inject.Provider<ResourceSetBasedResourceDescriptions> resourceSetDescriptionsProvider
generator
@Inject
protected JvmModelGenerator generator
xtend2JvmAssociations
@Inject
protected IXtend2JvmAssociations xtend2JvmAssociations
qualifiedNameProvider
@Inject
protected IQualifiedNameProvider qualifiedNameProvider
indexedJvmTypeAccess
@Inject
protected IndexedJvmTypeAccess indexedJvmTypeAccess
outputWriter
protected java.io.Writer outputWriter
errorWriter
protected java.io.Writer errorWriter
sourcePath
protected java.lang.String sourcePath
classPath
protected java.lang.String classPath
outputPath
protected java.lang.String outputPath
fileEncoding
protected java.lang.String fileEncoding
complianceLevel
protected java.lang.String complianceLevel
verbose
protected boolean verbose
tempDirectory
protected java.lang.String tempDirectory
deleteTempDirectory
protected boolean deleteTempDirectory
tempFolders
protected java.util.List<java.io.File> tempFolders
Xtend2BatchCompiler
public Xtend2BatchCompiler()
getTempDirectory
public java.lang.String getTempDirectory()
setTempDirectory
public void setTempDirectory(java.lang.String tempDirectory)
isDeleteTempDirectory
public boolean isDeleteTempDirectory()
setDeleteTempDirectory
public void setDeleteTempDirectory(boolean deletetempDirectory)
getOutputWriter
public java.io.Writer getOutputWriter()
setOutputWriter
public void setOutputWriter(java.io.Writer ouputWriter)
getErrorWriter
public java.io.Writer getErrorWriter()
setErrorWriter
public void setErrorWriter(java.io.Writer errorWriter)
setClassPath
public void setClassPath(java.lang.String classPath)
setOutputPath
public void setOutputPath(java.lang.String outputPath)
setSourcePath
public void setSourcePath(java.lang.String sourcePath)
getComplianceLevel
protected java.lang.String getComplianceLevel()
setVerbose
public void setVerbose(boolean verbose)
isVerbose
protected boolean isVerbose()
getFileEncoding
public java.lang.String getFileEncoding()
setFileEncoding
public void setFileEncoding(java.lang.String encoding)
compile
public boolean compile()
loadXtendFiles
protected org.eclipse.emf.ecore.resource.ResourceSet loadXtendFiles()
createStubs
protected java.io.File createStubs(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
preCompileStubs
protected boolean preCompileStubs(java.io.File tmpSourceDirectory,
java.io.File classDirectory)
validate
protected java.util.List<Issue> validate(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
installJvmTypeProvider
protected void installJvmTypeProvider(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
java.io.File tmpClassDirectory)
reportIssues
protected void reportIssues(java.lang.Iterable<Issue> issues)
generateJavaFiles
protected void generateJavaFiles(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
getResourceDescriptions
protected ResourceSetBasedResourceDescriptions getResourceDescriptions(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
getJavaFileName
protected java.lang.String getJavaFileName(XtendClass xtendClass)
getFullyQualifiedName
protected QualifiedName getFullyQualifiedName(XtendClass xtendClass)
getXtendClass
protected XtendClass getXtendClass(org.eclipse.emf.ecore.resource.Resource resource)
getClassPathEntries
protected java.util.List<java.lang.String> getClassPathEntries()
getSourcePathDirectories
protected java.util.List<java.lang.String> getSourcePathDirectories()
getDirectories
protected java.util.List<java.lang.String> getDirectories(java.lang.String path)
createTempDir
protected java.io.File createTempDir(java.lang.String prefix)
deleteTmpFolders
protected void deleteTmpFolders()
cleanFolder
protected static boolean cleanFolder(java.io.File parentFolder,
java.io.FileFilter filter,
boolean continueOnError,
boolean deleteParentFolder)