public interface CommandHandler
BuiltinCommand should append children to the outgoing
DOM tree.
An instance of this interface must be stateless once created.
| Modifier and Type | Method and Description |
|---|---|
void |
handleCommand(DOMBuilder builder,
Element parentElement,
CommandToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException
CommandToken is being handled by the DOMBuilder.builder - DOMBuilder running this process, which provides access
to convenience method for appending Nodes to the DOMparentElement - parent Element that the resulting Nodes should (can) be
added totoken - Token representing the command being processed.SnuggleParseException - to indicate a client errorDOMException - if the usual errors occur when building the DOM.Copyright © 2008–2026 The University of Edinburgh. All rights reserved.