Package org.asciidoctor.ast
Interface Block
-
- All Superinterfaces:
ContentNode,StructuralNode
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 Modifier and Type Method Description java.util.List<java.lang.String>getLines()java.lang.StringgetSource()voidsetLines(java.util.List<java.lang.String> lines)Sets the source lines of the Block.voidsetSource(java.lang.String source)Sets the source of the Block.-
Methods inherited from interface org.asciidoctor.ast.ContentNode
addRole, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttribute, hasAttribute, hasRole, iconUri, imageUri, imageUri, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, readAsset, removeRole, setAttribute, setContext, setId
-
Methods inherited from interface org.asciidoctor.ast.StructuralNode
addSubstitution, append, convert, findBy, getBlocks, getCaption, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setCaption, setLevel, setStyle, setSubstitutions, setTitle
-
-
-
-
Method Detail
-
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.
-
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.
-
-