public static class CompilationTestHelper.Result
extends java.lang.Object
Constructor and Description |
---|
CompilationTestHelper.Result() |
Modifier and Type | Method and Description |
---|---|
protected void |
doCompile() |
protected void |
doGenerate() |
protected void |
doIndex() |
protected void |
doLinking() |
protected void |
doValidation() |
java.util.Map<java.lang.String,java.lang.CharSequence> |
getAllGeneratedResources() |
java.lang.ClassLoader |
getClassLoader()
Ensures compilation has happened and returns the class loader including compiled classes.
|
java.lang.Class<?> |
getCompiledClass()
Convenience method for single generated Java classes
|
java.lang.Class<?> |
getCompiledClass(java.lang.String className)
Convenience method for single generated Java classes
|
java.util.Map<java.lang.String,java.lang.Class<?>> |
getCompiledClasses()
Ensures compilation has happened and returns any generated and compiled Java classes.
|
java.util.List<Issue> |
getErrorsAndWarnings()
Ensures validation has happened and returns any errors and warnings
|
java.util.Map<java.lang.String,java.lang.String> |
getGeneratedCode()
Ensures generation happened and returns a map of the generated Java source files.
|
java.lang.String |
getGeneratedCode(java.lang.String typeName)
convenience method.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet() |
java.lang.String |
getSingleGeneratedCode()
Convenience method for the common case, that only one file is generated.
|
protected void |
setJavaCompiler(OnTheFlyJavaCompiler javaCompiler) |
protected void |
setOutputConfigurations(java.lang.Iterable<? extends OutputConfiguration> outputConfiguration) |
protected void |
setResources(java.util.List<org.eclipse.emf.ecore.resource.Resource> sources) |
protected void |
setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
protected void setResources(java.util.List<org.eclipse.emf.ecore.resource.Resource> sources)
protected void setJavaCompiler(OnTheFlyJavaCompiler javaCompiler)
protected void setOutputConfigurations(java.lang.Iterable<? extends OutputConfiguration> outputConfiguration)
public java.util.List<Issue> getErrorsAndWarnings()
public java.util.Map<java.lang.String,java.lang.Class<?>> getCompiledClasses()
public java.lang.ClassLoader getClassLoader()
public java.util.Map<java.lang.String,java.lang.String> getGeneratedCode()
public java.lang.String getGeneratedCode(java.lang.String typeName)
public java.lang.String getSingleGeneratedCode()
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
public java.lang.Class<?> getCompiledClass()
public java.lang.Class<?> getCompiledClass(java.lang.String className)
public java.util.Map<java.lang.String,java.lang.CharSequence> getAllGeneratedResources()
protected void doIndex()
protected void doLinking()
protected void doValidation()
protected void doGenerate()
protected void doCompile()