@groovy.transform.CompileStatic class AbstractImplementationEngineExtension extends org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase implements AsciidoctorAttributeProvider
Base class for implementing extensions in the Asciidoctor Gradle suite. This class is engine agnostic.
| Fields inherited from class | Fields |
|---|---|
class org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase |
__$stMC |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
attribute(String key, Object value)Add a single attribute |
|
void |
attributeProvider(AsciidoctorAttributeProvider provider)Adds an additional attribute provider. |
|
void |
attributeProvider(groovy.lang.Closure provider)Adds a closure as an additional attribute provider. |
|
void |
attributes(Map m)Add additional Asciidoctor attributes. |
|
void |
attributesForLang(Map<String, Object> m, String lang)Add additional Asciidoctor attributes. |
|
List<AsciidoctorAttributeProvider> |
getAttributeProviders()Returns a list of additional attribute providers. |
|
Map<String, Object> |
getAttributes()Resolves all of the Asciidoctor options. |
|
Map<String, Object> |
getAttributesForLang(String lang)Returns all of the Asciidoctor attributes for a specific language. |
|
SafeMode |
getSafeMode()Returns the Asciidoctor SafeMode under which a conversion will be run. |
|
void |
resetAttributesForLang(Map<String, Object> m, String lang)Apply a new set of Asciidoctor language-specific attributes, clearing any language-specific attributes previously set. |
|
void |
setAttributes(Map m)Apply a new set of Asciidoctor attributes, clearing any attributes previously set. |
|
void |
setSafeMode(SafeMode mode)Set Asciidoctor safe mode. |
|
void |
setSafeMode(int mode)Set Asciidoctor safe mode. |
|
void |
setSafeMode(String mode)Set Asciidoctor safe mode. |
| Methods inherited from class | Name |
|---|---|
class org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase |
org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#getMetaClass(), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#setMetaClass(groovy.lang.MetaClass), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#invokeMethod(java.lang.String, java.lang.Object), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#getProjectOperations(), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#setProperty(java.lang.String, java.lang.Object), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#getProperty(java.lang.String), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#wait(long, int), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#wait(long), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#wait(), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#equals(java.lang.Object), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#toString(), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#hashCode(), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#getClass(), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#notify(), org.ysb33r.grolifant.api.core.runnable.CombinedProjectTaskExtensionBase#notifyAll() |
Add a single attribute
key - Name of attributevalue - Value of attribute.Adds an additional attribute provider.
Adds a closure as an additional attribute provider.
provider - A closure must return a MapAdd additional Asciidoctor attributes. This can be set globally for all Asciidoctor tasks in a project. If this is set in a task it will use this attributes in the task in addition to any global attributes.
m - Map with new optionsAdd additional Asciidoctor attributes. This can be set globally for all Asciidoctor tasks in a project. If this is set in a task it will use this attributes in the task in addition to any global attributes.
m - Map with additional language-specific attributes.lang - Language for which attributes need to be reset.Returns a list of additional attribute providers.
null.Resolves all of the Asciidoctor options.
Returns all of the Asciidoctor attributes for a specific language.
lang - Language for which attributes need to be returnednullReturns the Asciidoctor SafeMode under which a conversion will be run.
Apply a new set of Asciidoctor language-specific attributes, clearing any language-specific attributes previously set. This can be set globally for all Asciidoctor tasks in a project. If this is set in a task it will override the global attributes for the specific language.
m - Map with new language-specific attributeslang - Language for which attributes need to be reset.Apply a new set of Asciidoctor attributes, clearing any attributes previously set. This can be set globally for all Asciidoctor tasks in a project. If this is set in a task it will override the global attributes.
m - Map with new optionsSet Asciidoctor safe mode.
mode - An instance of Asciidoctor SafeMode.Set Asciidoctor safe mode.
mode - A valid integer representing a Safe ModeSet Asciidoctor safe mode.
mode - A valid string representing a Safe Mode