public final class XMLUnparseHandler extends java.lang.Object implements EnvironmentHandler, CommandHandler
xmlUnparsed command and environment.
This has the effect of handling content as normal, before effectively putting the results inside a CDATA section. This is very useful for documenting how SnuggleTeX works, but may be useful for other purposes as well.
| 构造器和说明 |
|---|
XMLUnparseHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handleCommand(DOMBuilder builder,
org.w3c.dom.Element parentElement,
CommandToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
void |
handleEnvironment(DOMBuilder builder,
org.w3c.dom.Element parentElement,
EnvironmentToken token)
Called when a
CommandToken is being handled by the DOMBuilder. |
public void handleCommand(DOMBuilder builder, org.w3c.dom.Element parentElement, CommandToken token) throws SnuggleParseException
CommandHandlerCommandToken is being handled by the DOMBuilder.handleCommand 在接口中 CommandHandlerbuilder - 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 errorpublic void handleEnvironment(DOMBuilder builder, org.w3c.dom.Element parentElement, EnvironmentToken token) throws SnuggleParseException
EnvironmentHandlerCommandToken is being handled by the DOMBuilder.handleEnvironment 在接口中 EnvironmentHandlerbuilder - 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 environment being processed.SnuggleParseException