Package net.kyori.blossom.internal
Class TemplateSetImpl
java.lang.Object
net.kyori.blossom.internal.TemplateSetImpl
- All Implemented Interfaces:
TemplateSetInternal,TemplateSet,org.gradle.api.Named
- Direct Known Subclasses:
ResourceTemplateSetImpl,SourceTemplateSetImpl
A directory of templates.
While it's perfectly possible to
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.gradle.api.provider.Property<String>A literal header to insert at the top of generated source files.@NotNull org.gradle.api.file.SourceDirectorySetDirectories providing templates which can be included into process templates, but which will not be processed for output themselves.@NotNull StringgetName()protected abstract org.gradle.api.model.ObjectFactoryRuntime-defined properties.@NotNull org.gradle.api.file.ConfigurableFileCollectionA collection of data files in YAML format.@NotNull org.gradle.api.file.SourceDirectorySetDirectories containing templates.@NotNull org.gradle.api.NamedDomainObjectContainer<Variant>A container of template variants.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.blossom.TemplateSet
include, property, property, propertyFile, templates, variants, variantsMethods inherited from interface net.kyori.blossom.internal.TemplateSetInternal
registerOutputWithSet, resolveOutputRoot
-
Constructor Details
-
TemplateSetImpl
-
-
Method Details
-
getObjects
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjects() -
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named- Specified by:
getNamein interfaceTemplateSet
-
getPropertyFiles
@NotNull public @NotNull org.gradle.api.file.ConfigurableFileCollection getPropertyFiles()Description copied from interface:TemplateSetA collection of data files in YAML format.- Specified by:
getPropertyFilesin interfaceTemplateSet- Returns:
- the data file collection
-
getProperties
Description copied from interface:TemplateSetRuntime-defined properties.These properties will override anything in the data files.
- Specified by:
getPropertiesin interfaceTemplateSet- Returns:
- the properties
-
getHeader
Description copied from interface:TemplateSetA literal header to insert at the top of generated source files.This property is optional.
- Specified by:
getHeaderin interfaceTemplateSet- Returns:
- the header
-
getIncludes
@NotNull public @NotNull org.gradle.api.file.SourceDirectorySet getIncludes()Description copied from interface:TemplateSetDirectories providing templates which can be included into process templates, but which will not be processed for output themselves.- Specified by:
getIncludesin interfaceTemplateSet- Returns:
- the includes directories
-
getTemplates
@NotNull public @NotNull org.gradle.api.file.SourceDirectorySet getTemplates()Description copied from interface:TemplateSetDirectories containing templates.All templates share a common namespace, so templates in directories that come first will override templates that come later.
- Specified by:
getTemplatesin interfaceTemplateSet- Returns:
- the templates to process
-
getVariants
Description copied from interface:TemplateSetA container of template variants.Variants will process the same templates, but with different property values.
- Specified by:
getVariantsin interfaceTemplateSet- Returns:
- the variants collection
-