public class DefaultTwirlSourceDirectorySet8 extends org.gradle.api.internal.file.DefaultSourceDirectorySet implements TwirlSourceDirectorySet
patternSetFactory, taskDependencyFactory
DEFAULT_TREE_DISPLAY_NAME
Constructor and Description |
---|
DefaultTwirlSourceDirectorySet8(org.gradle.api.file.SourceDirectorySet sourceSet,
org.gradle.api.internal.tasks.TaskDependencyFactory taskDependencyFactory,
org.gradle.api.model.ObjectFactory objectFactory) |
Modifier and Type | Method and Description |
---|---|
org.gradle.api.provider.ListProperty<String> |
getAdditionalImports()
Returns the list of additional imports to add to the generated Scala code.
|
org.gradle.api.provider.ListProperty<String> |
getConstructorAnnotations()
Gets the list of construtor annotations to support dependency injection
|
org.gradle.api.provider.Property<TwirlImports> |
getDefaultImports()
The default imports that should be added to generated source files.
|
org.gradle.api.provider.ListProperty<TwirlTemplateFormat> |
getUserTemplateFormats()
Returns the custom template formats configured for this source set.
|
TwirlTemplateFormat |
newUserTemplateFormat(String extension,
String templateType,
String... imports)
Creates a new custom template format.
|
compiledBy, exclude, exclude, exclude, exclude, getClassesDirectory, getDestinationDirectory, getDisplayName, getExcludes, getFilter, getIncludes, getName, getSourceDirectories, getSourceTrees, getSrcDirs, getSrcDirTrees, include, include, include, include, setExcludes, setIncludes, setSrcDirs, source, srcDir, srcDirs, visitChildren, visitDependencies
getAsFileTree, getSourceCollections, matching, matching, matching, plus, visit, visit, visit, visitContentsAsFileTrees
addAsResourceCollection, contains, filter, isEmpty, visitContents
addAsFileSet, addAsMatchingTask, addToAntBuilder, addToAntBuilder, appendContents, assertCanCarryBuildDependencies, describeContents, filter, getAsFileTrees, getAsPath, getBuildDependencies, getElements, getFiles, getSingleFile, iterator, minus, plus, replace, toString, visitAll, visitStructure
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compiledBy, getClassesDirectory, getDestinationDirectory, getFilter, getName, getSourceDirectories, getSrcDirs, getSrcDirTrees, setSrcDirs, source, srcDir, srcDirs
getAsFileTree, getFiles, matching, matching, matching, plus, visit, visit, visit
addToAntBuilder, addToAntBuilder, contains, filter, filter, getAsPath, getElements, getSingleFile, isEmpty, minus, plus
forEach, iterator, spliterator
@Inject public DefaultTwirlSourceDirectorySet8(org.gradle.api.file.SourceDirectorySet sourceSet, org.gradle.api.internal.tasks.TaskDependencyFactory taskDependencyFactory, org.gradle.api.model.ObjectFactory objectFactory)
public org.gradle.api.provider.Property<TwirlImports> getDefaultImports()
TwirlSourceDirectorySet
getDefaultImports
in interface TwirlSourceDirectorySet
public org.gradle.api.provider.ListProperty<TwirlTemplateFormat> getUserTemplateFormats()
TwirlSourceDirectorySet
getUserTemplateFormats
in interface TwirlSourceDirectorySet
public TwirlTemplateFormat newUserTemplateFormat(String extension, String templateType, String... imports)
TwirlSourceDirectorySet
newUserTemplateFormat
in interface TwirlSourceDirectorySet
extension
- The file extension this template applies to (e.g., html)templateType
- Fully-qualified type for this template formatimports
- Additional imports to add for the custom template formatpublic org.gradle.api.provider.ListProperty<String> getAdditionalImports()
TwirlSourceDirectorySet
getAdditionalImports
in interface TwirlSourceDirectorySet
public org.gradle.api.provider.ListProperty<String> getConstructorAnnotations()
TwirlSourceDirectorySet
getConstructorAnnotations
in interface TwirlSourceDirectorySet