@groovy.transform.CompileStatic class AsciidoctorAttributes extends Object
Utilities for dealing with Asciidoctor attributes
| Constructor and description |
|---|
AsciidoctorAttributes
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Map<String, Object> |
evaluateProviders(Map<String, Object> initialMap)Resolves all provider into the underlying type. |
|
static Map<String, Object> |
prepareAttributes(org.ysb33r.grolifant.api.core.StringTools stringTools, Map<String, ?> seedAttributes, Map<String, ?> langAttributes, Map<String, ?> tsdAttributes, List<AsciidoctorAttributeProvider> attributeProviders, Optional<String> lang)Prepare attributes to be serialisable |
|
static Map<String, Object> |
resolveAsCacheable(Map<String, Object> attrs, org.ysb33r.grolifant.api.core.ProjectOperations po)Recursively resolves all content recursively into string, booleans, containers of string & boolean, and providers of string & boolean. |
|
static Map<String, Object> |
resolveAsSerializable(Map<String, Object> attrs, org.ysb33r.grolifant.api.core.StringTools stringTools)Recursively resolves all content recursively into string, booleans, containers of string & boolean, and providers of string & boolean. |
Resolves all provider into the underlying type.
initialMap - Map possible containing Providers as values.Prepare attributes to be serialisable
stringTools - org.ysb33r.grolifant.api.core.StringTools instance to use for stringification.workingSourceDir - Working source directory from which source documents will be made available.seedAttributes - Initial attributes set on the task.langAttributes - Any language specific attributes.tdsAttributes - Task-specific default attributes.attributeProviders - Additional attribute providers.lang - Language being processed. Can be unset if multi-language feature is not used.Recursively resolves all content recursively into string, booleans, containers of string & boolean, and providers of string & boolean.
attrs - Attributespo - org.ysb33r.grolifant.api.core.ProjectOperations instanceRecursively resolves all content recursively into string, booleans, containers of string & boolean, and providers of string & boolean. All providers are resolved into string & boolean or containers of these two types.
attrs - AttributuesstringTools - Reference to a org.ysb33r.grolifant.api.core.StringTools instance.Copyright © 2013-2024 the original author or authors. All rights reserved.