ComputedStyle for each raw parsed Token. It is
used directly after LaTeXTokeniser but before the TokenFixer.
Once this has run, all Commands and Environments with a
StyleDeclarationInterpretation will have been removed from the parse tree. This
corresponds to commands such as \bf, \textrm{...} and environments like \begin{em}...\end{em}.
Each Token remaining in the tree will have its
Token#setComputedStyle(ComputedStyle) called
to indicate the resulting "style" it will have.
LaTeXTokeniser, TokenFixer, StyleRebuilder, SnuggleSession#parseInput(uk.ac.ed.ph.snuggletex.SnuggleInput)
| Modifier and Type | Field and Description |
|---|---|
| private final SessionContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private ComputedStyle | |
| private ComputedStyle | |
| private void | |
| private void | |
| private void | |
| private void |
| sessionContext | back to summary |
|---|---|
private final SessionContext sessionContext
| |
| StyleEvaluator | back to summary |
|---|---|
| public StyleEvaluator(final SessionContext sessionContext) | |
| evaluateStyles | back to summary |
|---|---|
| public void evaluateStyles(RootToken rootToken) throws SnuggleParseException | |
| mergeStyle | back to summary |
|---|---|
| private ComputedStyle mergeStyle(ComputedStyle currentStyle, StyleDeclarationInterpretation interpretation) | |
| newStyleScope | back to summary |
|---|---|
| private ComputedStyle newStyleScope(ComputedStyle currentStyle) | |
| visitCommand | back to summary |
|---|---|
| private void visitCommand(CommandToken commandToken, ComputedStyle currentStyle) throws SnuggleParseException | |
| visitContainerContent | back to summary |
|---|---|
| private void visitContainerContent(ArgumentContainerToken parent, ComputedStyle scopeStyle) throws SnuggleParseException | |
| visitEnvironment | back to summary |
|---|---|
| private void visitEnvironment(EnvironmentToken environmentToken, ComputedStyle currentStyle) throws SnuggleParseException | |
| visitSiblings | back to summary |
|---|---|
| private void visitSiblings(List<FlowToken> content, ComputedStyle scopeStyle) throws SnuggleParseException | |