Package org.asciidoctor.ast
Interface Block
-
- All Superinterfaces:
ContentNode
,StructuralNode
- All Known Implementing Classes:
BlockImpl
public interface Block extends StructuralNode
-
-
Field Summary
-
Fields inherited from interface org.asciidoctor.ast.StructuralNode
SUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>
getLines()
java.lang.String
getSource()
java.util.List<java.lang.String>
lines()
Deprecated.Please usegetLines()
void
setLines(java.util.List<java.lang.String> lines)
Sets the source lines of the Block.void
setSource(java.lang.String source)
Sets the source of the Block.java.lang.String
source()
Deprecated.Please usegetSource()
-
Methods 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, setId
-
Methods 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
-
-
-
-
Method Detail
-
lines
@Deprecated java.util.List<java.lang.String> lines()
Deprecated.Please usegetLines()
- Returns:
- The original content of this block
-
getLines
java.util.List<java.lang.String> getLines()
- Returns:
- The original content of this block
-
setLines
void setLines(java.util.List<java.lang.String> lines)
Sets the source lines of the Block.- Parameters:
lines
- The source of this Block, substitutions will still be applied.
-
source
@Deprecated java.lang.String source()
Deprecated.Please usegetSource()
- Returns:
- the String containing the lines joined together or null if there are no lines
-
getSource
java.lang.String getSource()
- Returns:
- the String containing the lines joined together or null if there are no lines
-
setSource
void setSource(java.lang.String source)
Sets the source of the Block.- Parameters:
source
- The source of this Block, substitutions will still be applied.
-
-