Class XMLStandaloneElement
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
com.lucaskjaerozhang.wikitext_parser.ast.layout.XMLStandaloneElement
- All Implemented Interfaces:
WikiTextElement
An XML node with no children. In WikiText, you can pass through HTML or special xml tags. This
handles them as a group. Examples: - blockquote - poem
-
Constructor Summary
ConstructorsConstructorDescriptionXMLStandaloneElement(String tag, List<NodeAttribute> attributes) Creates an XML node with no children. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>accept(WikiTextASTVisitor<T> visitor) Hook for an AST visitor.Methods inherited from class com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
getAttributes, 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
-
XMLStandaloneElement
Creates an XML node with no children.- Parameters:
tag- The XML tag.attributes- Any xml attributes.
-
-
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.
-