Top Description Constructors Methods
uk.ac.ed.ph.snuggletex.dombuilding

public final Class ParagraphHandler

extends Object
implements CommandHandler
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler
Imports
uk.ac.ed.ph.snuggletex.definitions.CorePackageDefinitions, uk.ac.ed.ph.snuggletex.internal.DOMBuilder, .SnuggleParseException, uk.ac.ed.ph.snuggletex.tokens.CommandToken, .FlowToken, java.util.List, org.w3c.dom.DOMException, .Element

This builds the content of a (fixed) CorePackageDefinitions#CMD_PARAGRAPH token.
Author
David McKain
Version
$Revision$

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
buildParagraph(DOMBuilder builder, Element parentElement, List<FlowToken> inlineContent)

Builds a single paragraph, being careful to consider how best to represent it in the output tree at the existing position.

public void
handleCommand(DOMBuilder builder, Element parentElement, CommandToken token)

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ParagraphHandlerback to summary
public ParagraphHandler()

Method Detail

buildParagraphback to summary
private void buildParagraph(DOMBuilder builder, Element parentElement, List<FlowToken> inlineContent) throws SnuggleParseException

Builds a single paragraph, being careful to consider how best to represent it in the output tree at the existing position.

handleCommandback to summary
public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Doc from uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

Exceptions
SnuggleParseException:
to indicate a client error