Class WikiTextBaseASTVisitor<T>
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.visitor.WikiTextBaseASTVisitor<T>
- Type Parameters:
T- Whatever you want your visitor to return.
- All Implemented Interfaces:
WikiTextASTVisitor<T>
- Direct Known Subclasses:
XMLWriter
Provides a visitor implementation that does the minimum needed to let you skip implementation
steps. For a leaf node, it returns Optional.empty(). For a parent node, it returns the value of
the last non-empty child.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisitArticle(Article article) visitCategory(CategoryList.Category category) visitCategoryLink(CategoryLink categoryLink) visitCategoryList(CategoryList categoryList) visitChildren(List<WikiTextNode> children) visitExternalLink(ExternalLink externalLink) visitHorizontalRule(HorizontalRule horizontalRule) visitIndentedBlock(IndentedBlock indentedBlock) visitItalic(Italic italic) visitLineBreak(LineBreak lineBreak) visitListItem(ListItem listItem) visitNodeAttribute(NodeAttribute nodeAttribute) visitRedirect(Redirect redirect) visitSection(Section section) visitUnnamedExternalLink(UnnamedExternalLink unnamedExternalLink) visitWikiLink(WikiLink wikiLink) visitWikiTextList(WikiTextList wikiTextList)
-
Constructor Details
-
WikiTextBaseASTVisitor
public WikiTextBaseASTVisitor()
-
-
Method Details
-
visitArticle
- Specified by:
visitArticlein interfaceWikiTextASTVisitor<T>
-
visitBold
- Specified by:
visitBoldin interfaceWikiTextASTVisitor<T>
-
visitCategory
- Specified by:
visitCategoryin interfaceWikiTextASTVisitor<T>
-
visitCategoryLink
- Specified by:
visitCategoryLinkin interfaceWikiTextASTVisitor<T>
-
visitCategoryList
- Specified by:
visitCategoryListin interfaceWikiTextASTVisitor<T>
-
visitExternalLink
- Specified by:
visitExternalLinkin interfaceWikiTextASTVisitor<T>
-
visitHorizontalRule
- Specified by:
visitHorizontalRulein interfaceWikiTextASTVisitor<T>
-
visitIndentedBlock
- Specified by:
visitIndentedBlockin interfaceWikiTextASTVisitor<T>
-
visitItalic
- Specified by:
visitItalicin interfaceWikiTextASTVisitor<T>
-
visitLineBreak
- Specified by:
visitLineBreakin interfaceWikiTextASTVisitor<T>
-
visitListItem
- Specified by:
visitListItemin interfaceWikiTextASTVisitor<T>
-
visitNodeAttribute
- Specified by:
visitNodeAttributein interfaceWikiTextASTVisitor<T>
-
visitRedirect
- Specified by:
visitRedirectin interfaceWikiTextASTVisitor<T>
-
visitSection
- Specified by:
visitSectionin interfaceWikiTextASTVisitor<T>
-
visitText
- Specified by:
visitTextin interfaceWikiTextASTVisitor<T>
-
visitUnnamedExternalLink
- Specified by:
visitUnnamedExternalLinkin interfaceWikiTextASTVisitor<T>
-
visitWikiLink
- Specified by:
visitWikiLinkin interfaceWikiTextASTVisitor<T>
-
visitWikiTextList
- Specified by:
visitWikiTextListin interfaceWikiTextASTVisitor<T>
-
visitXMLContainerElement
- Specified by:
visitXMLContainerElementin interfaceWikiTextASTVisitor<T>
-
visitXMLStandaloneElement
- Specified by:
visitXMLStandaloneElementin interfaceWikiTextASTVisitor<T>
-
visitChildren
-