Class IndentedBlock
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextParentNode
com.lucaskjaerozhang.wikitext_parser.ast.layout.IndentedBlock
- All Implemented Interfaces:
WikiTextElement
An indented block.
WikiText: : text
Text can be indented more than once, with one level per :.
One level - : One
Two levels - :: Two
... etc.
WikiText: : text
Text can be indented more than once, with one level per :.
One level - : One
Two levels - :: Two
... etc.
-
Constructor Summary
ConstructorsConstructorDescriptionIndentedBlock(Integer level, List<WikiTextNode> content) Constructs the indented block node. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>accept(WikiTextASTVisitor<T> visitor) Hook for an AST visitor.Base case for getting element attributes.Methods inherited from class com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextParentNode
getCategories, getFieldValuesFromChildren, rebuildWithContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextElement
getCategories
-
Constructor Details
-
IndentedBlock
Constructs the indented block node.- Parameters:
level- The level of indentation.content- The child nodes.
-
-
Method Details
-
accept
Description copied from class:WikiTextNodeHook for an AST visitor.- Specified by:
acceptin classWikiTextNode- Type Parameters:
T- Whatever the visitor produces.- Parameters:
visitor- The visitor doing the visitor.- Returns:
- Whatever the visitor produced.
-
getAttributes
Description copied from class:WikiTextNodeBase case for getting element attributes. Most nodes have no attributes- Overrides:
getAttributesin classWikiTextNode- Returns:
- Attributes
-