Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.internal

public final Class StyleRebuilder

extends Object
Class Inheritance
Imports
uk.ac.ed.ph.snuggletex.SnuggleLogicException, .SnuggleSession, uk.ac.ed.ph.snuggletex.definitions.ComputedStyle, .CorePackageDefinitions, uk.ac.ed.ph.snuggletex.semantics.InterpretationType, uk.ac.ed.ph.snuggletex.tokens.ArgumentContainerToken, .BraceContainerToken, .CommandToken, .EnvironmentToken, .FlowToken, .RootToken, java.util.ArrayList, .List

This runs after TokenFixer and groups style changes together using the pseudo-environment CorePackageDefinitions#ENV_STYLE, which makes DOM building much easier.
Author
David McKain
Version
$Revision$
See Also
LaTeXTokeniser, StyleEvaluator, TokenFixer, SnuggleSession#parseInput(uk.ac.ed.ph.snuggletex.SnuggleInput)

Field Summary

Modifier and TypeField and Description
private final SessionContext

Constructor Summary

AccessConstructor and Description
public
StyleRebuilder(final SessionContext sessionContext)

Method Summary

Modifier and TypeMethod and Description
private EnvironmentToken
private EnvironmentToken
public void
private void
private void
visitCommand(CommandToken commandToken, ComputedStyle currentStyle)

private void
visitEnvironment(EnvironmentToken environmentToken, ComputedStyle currentStyle)

private void
visitSiblings(List<FlowToken> content, ComputedStyle inScopeStyle)

private void
visitToken(FlowToken token, ComputedStyle currentStyle)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sessionContextback to summary
private final SessionContext sessionContext
Annotations
@SuppressWarnings:unused

Constructor Detail

StyleRebuilderback to summary
public StyleRebuilder(final SessionContext sessionContext)

Method Detail

createStyleEnvironmentTokenback to summary
private EnvironmentToken createStyleEnvironmentToken(FlowToken source, List<FlowToken> tokenGroup)
createStyleEnvironmentTokenback to summary
private EnvironmentToken createStyleEnvironmentToken(FlowToken source, ArgumentContainerToken contentToken)
rebuildStylesback to summary
public void rebuildStyles(RootToken rootToken)
visitArgumentContainerback to summary
private void visitArgumentContainer(FlowToken owner, ArgumentContainerToken token, ComputedStyle currentStyle)
visitCommandback to summary
private void visitCommand(CommandToken commandToken, ComputedStyle currentStyle)
visitEnvironmentback to summary
private void visitEnvironment(EnvironmentToken environmentToken, ComputedStyle currentStyle)
visitSiblingsback to summary
private void visitSiblings(List<FlowToken> content, ComputedStyle inScopeStyle)
visitTokenback to summary
private void visitToken(FlowToken token, ComputedStyle currentStyle)