| Constructor and Description |
|---|
SourcesUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Sources |
sourceSetToSources(Set<Source> sourceSet,
String name)
converts a set of source to sources with the given name
and with the default Groovy compiler factory.
|
static Sources |
sourceSetToSources(Set<Source> sourceSet,
String name,
CompilerFactory compilerFactory)
converts a set of source to sources with the given name
and with the given compiler factory.
|
static Sources |
sourceToSources(Source source)
converts a source to sources with name set to the source ID
and with the default Groovy compiler factory.
|
static Sources |
sourceToSources(Source source,
CompilerFactory compilerFactory)
converts a source to sources with name set to the source ID
and with the given compiler factory.
|
public static Sources sourceToSources(Source source)
source - sourceNullPointerException - if the source is nullpublic static Sources sourceToSources(Source source, CompilerFactory compilerFactory)
source - sourcecompilerFactory - compiler factoryNullPointerException - if the source or the compiler factory is nullpublic static Sources sourceSetToSources(Set<Source> sourceSet, String name)
sourceSet - set of sourcename - sources nameNullPointerException - if the source set or the name is nullpublic static Sources sourceSetToSources(Set<Source> sourceSet, String name, CompilerFactory compilerFactory)
sourceSet - set of sourcename - sources namecompilerFactory - compiler factoryNullPointerException - if the source set, the name or the compiler factory is null