Class UnnamedExternalLink
java.lang.Object
com.lucaskjaerozhang.wikitext_parser.ast.base.WikiTextNode
com.lucaskjaerozhang.wikitext_parser.ast.link.UnnamedExternalLink
- All Implemented Interfaces:
WikiTextElement
A link that goes outside of the wiki which gets automatic numbering rather than display text.
WikiText: [link]
XML: link
WikiText: [link]
XML: link
-
Constructor Summary
ConstructorsConstructorDescriptionUnnamedExternalLink(String href, Boolean hasArrow) Creates an external link without a name. -
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.WikiTextNode
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
-
UnnamedExternalLink
Creates an external link without a name.- Parameters:
href- The link targethasArrow- Whether an arrow should be displayed on the link.
-
-
Method Details
-
getAttributes
Description copied from class:WikiTextNodeBase case for getting element attributes. Most nodes have no attributes- Overrides:
getAttributesin classWikiTextNode- Returns:
- Attributes
-
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.
-