Package org.asciidoctor.jruby.ast.impl
Class DocumentImpl
java.lang.Object
org.asciidoctor.jruby.internal.RubyObjectWrapper
org.asciidoctor.jruby.ast.impl.ContentNodeImpl
org.asciidoctor.jruby.ast.impl.StructuralNodeImpl
org.asciidoctor.jruby.ast.impl.DocumentImpl
- All Implemented Interfaces:
ContentNode,Document,StructuralNode
-
Field Summary
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtimeFields inherited from interface org.asciidoctor.ast.StructuralNode
SUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbasebackend(String backend) Deprecated.doctitle()Deprecated.intgetAndIncrementCounter(String name) Gets the current counter with the given name and increases its value.intgetAndIncrementCounter(String name, int initialValue) Gets the current counter with the given name and increases its value.Gets the author(s) information as defined in the author line in the document header, or in author & email attributes.The catalog contains data collected by asciidoctor that is useful to a converter.The revision information with: date, number and remark.booleanisBasebackend(String backend) booleanvoidsetSourcemap(boolean state) Toggles the sourcemap option.Methods inherited from class org.asciidoctor.jruby.ast.impl.StructuralNodeImpl
addSubstitution, append, blocks, content, convert, findBy, getBlocks, getCaption, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setCaption, setLevel, setStyle, setSubstitutions, setTitle, style, titleMethods inherited from class org.asciidoctor.jruby.ast.impl.ContentNodeImpl
addRole, context, document, getAttr, getAttr, getAttr, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttr, hasAttr, hasAttribute, hasAttribute, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setAttribute, setIdMethods inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJavaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.asciidoctor.ast.ContentNode
addRole, context, document, getAttr, getAttr, getAttr, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttr, hasAttr, hasAttribute, hasAttribute, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setAttribute, setIdMethods inherited from interface org.asciidoctor.ast.StructuralNode
addSubstitution, append, blocks, content, convert, findBy, getBlocks, getCaption, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setCaption, setLevel, setStyle, setSubstitutions, setTitle, style, title
-
Constructor Details
-
DocumentImpl
public DocumentImpl(org.jruby.runtime.builtin.IRubyObject document)
-
-
Method Details
-
isBasebackend
- Specified by:
isBasebackendin interfaceDocument- Returns:
- basebackend attribute value
-
basebackend
Deprecated.- Specified by:
basebackendin interfaceDocument- Returns:
- basebackend attribute value
-
getOptions
- Specified by:
getOptionsin interfaceDocument- Returns:
- options defined in document.
-
getStructuredDoctitle
- Specified by:
getStructuredDoctitlein interfaceDocument- Returns:
- The Title structure for this document.
- See Also:
-
getDoctitle
- Specified by:
getDoctitlein interfaceDocument- Returns:
- The title as a String.
- See Also:
-
doctitle
Deprecated. -
getAuthors
Description copied from interface:DocumentGets the author(s) information as defined in the author line in the document header, or in author & email attributes.- Specified by:
getAuthorsin interfaceDocument- Returns:
- authors information
-
getAndIncrementCounter
Description copied from interface:DocumentGets the current counter with the given name and increases its value. At the first invocation the counter will return 1. After the call the value of the counter is set to the returned value plus 1.- Specified by:
getAndIncrementCounterin interfaceDocument- Returns:
-
getAndIncrementCounter
Description copied from interface:DocumentGets the current counter with the given name and increases its value. At the first invocation the counter will return the given initial value. After the call the value of the counter is set to the returned value plus 1.- Specified by:
getAndIncrementCounterin interfaceDocument- Returns:
-
isSourcemap
public boolean isSourcemap()- Specified by:
isSourcemapin interfaceDocument- Returns:
- Whether the sourcemap is enabled.
-
setSourcemap
public void setSourcemap(boolean state) Description copied from interface:DocumentToggles the sourcemap option. This method must be called before the document is parsed, such as from a Preprocessor extension. Otherwise, it has no effect.- Specified by:
setSourcemapin interfaceDocument- Parameters:
state- The state in which to put the sourcemap (true = on, false = off).
-
getCatalog
Description copied from interface:DocumentThe catalog contains data collected by asciidoctor that is useful to a converter. Note that the catalog is not part of the asciidoctor public API and is subject to change.- Specified by:
getCatalogin interfaceDocument- Returns:
- catalog
-
getRevisionInfo
Description copied from interface:DocumentThe revision information with: date, number and remark.- Specified by:
getRevisionInfoin interfaceDocument- Returns:
- revisionInfo
-