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

public final Class BraceContainerToken

extends FlowToken
implements Iterable<FlowToken>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Imports
uk.ac.ed.ph.snuggletex.definitions.LaTeXMode, uk.ac.ed.ph.snuggletex.internal.FrozenSlice, .TokenFixer, uk.ac.ed.ph.snuggletex.internal.util.DumpMode, .ObjectDumperOptions, java.util.Iterator, .List

Represents a literal braced section in the original LaTeX document, i.e. something like { ... }.

The TokenFixer strips these out when in PARAGRAPH mode as they're only used to delimit stylings. They are kept in for MATH and LR mode since they are used as implicit brackets.

Author
David McKain
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private final List<FlowToken>
Inherited from uk.ac.ed.ph.snuggletex.tokens.FlowToken:
textFlowContext

Constructor Summary

AccessConstructor and Description
public
BraceContainerToken(final FrozenSlice slice, final LaTeXMode latexMode, final List<FlowToken> contents)

Method Summary

Modifier and TypeMethod and Description
public List<FlowToken>
public Iterator<FlowToken>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Inherited from uk.ac.ed.ph.snuggletex.tokens.FlowToken:
getTextFlowContext

Field Detail

contentsback to summary
private final List<FlowToken> contents

Constructor Detail

BraceContainerTokenback to summary
public BraceContainerToken(final FrozenSlice slice, final LaTeXMode latexMode, final List<FlowToken> contents)

Method Detail

getContentsback to summary
public List<FlowToken> getContents()
Annotations
@ObjectDumperOptions:DEEP
iteratorback to summary
public Iterator<FlowToken> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.