public final class TokenFixer
extends java.lang.Object
StyleEvaluator has run and performs grouping operations
on the FlowTokens to convert them to a more tree-like structure that is easier to handle.
Once this has run, all BraceContainerToken tokens present in PARAGRAPH mode will have
been unwrapped or flattened. They are however kept in MATH and LR mode as they can be used for
implicit brackets. (Unwinding of redundantly nested containers is done in all cases, though.)
Many other types of tokens, such as the "new paragraph" or "new list item" token will have been removed, with the surrounding content grouped accordingly.
| 构造器和说明 |
|---|
TokenFixer(SessionContext sessionContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fixTokenTree(RootToken rootToken) |
public TokenFixer(SessionContext sessionContext)
public void fixTokenTree(RootToken rootToken) throws SnuggleParseException