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

public final Class ArgumentContainerToken

extends Token
implements Iterable<FlowToken>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Annotations
@ObjectDumperOptions:DEEP
Imports
uk.ac.ed.ph.snuggletex.definitions.Command, .ComputedStyle, .Environment, .LaTeXMode, uk.ac.ed.ph.snuggletex.internal.FrozenSlice, uk.ac.ed.ph.snuggletex.internal.util.DumpMode, .ObjectDumperOptions, java.util.ArrayList, .Collections, .Iterator, .List

This token is used as a container for the arguments specified for a particular Command or Environment.
Author
David McKain
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private final List<FlowToken>
public static final ArgumentContainerToken[]
Inherited from uk.ac.ed.ph.snuggletex.tokens.Token:
computedStyleinterpretationMaplatexModeslicetype

Constructor Summary

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

public
ArgumentContainerToken(final FrozenSlice slice, final LaTeXMode latexMode, final List<FlowToken> contents, final ComputedStyle computedStyle)

Method Summary

Modifier and TypeMethod and Description
public static ArgumentContainerToken
createEmptyContainer(final Token parentToken, final LaTeXMode latexMode, final ComputedStyle computedStyle)

public static ArgumentContainerToken
createFromContiguousTokens(final Token parentToken, final LaTeXMode latexMode, final List<? extends FlowToken> contents, final ComputedStyle computedStyle)

public static ArgumentContainerToken
createFromContiguousTokens(final Token parentToken, final LaTeXMode latexMode, final List<? extends FlowToken> contents, final int startIndex, final int endIndex, final ComputedStyle computedStyle)

public static ArgumentContainerToken
createFromSingleToken(final LaTeXMode latexMode, final FlowToken content)

public static ArgumentContainerToken
createFromSingleToken(final LaTeXMode latexMode, final FlowToken content, final ComputedStyle computedStyle)

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.Token:
getComputedStylegetInterpretationgetInterpretationMapgetLatexModegetMathCharactergetMathCharacterCodePointgetSlicegetTypehasInterpretationTypeisCommandisEnvironmentsetComputedStyletoString

Field Detail

contentsback to summary
private final List<FlowToken> contents
EMPTY_ARRAYback to summary
public static final ArgumentContainerToken[] EMPTY_ARRAY

Constructor Detail

ArgumentContainerTokenback to summary
public ArgumentContainerToken(final FrozenSlice slice, final LaTeXMode latexMode, final List<FlowToken> contents)
ArgumentContainerTokenback to summary
public ArgumentContainerToken(final FrozenSlice slice, final LaTeXMode latexMode, final List<FlowToken> contents, final ComputedStyle computedStyle)

Method Detail

createEmptyContainerback to summary
public static ArgumentContainerToken createEmptyContainer(final Token parentToken, final LaTeXMode latexMode, final ComputedStyle computedStyle)
createFromContiguousTokensback to summary
public static ArgumentContainerToken createFromContiguousTokens(final Token parentToken, final LaTeXMode latexMode, final List<? extends FlowToken> contents, final ComputedStyle computedStyle)
createFromContiguousTokensback to summary
public static ArgumentContainerToken createFromContiguousTokens(final Token parentToken, final LaTeXMode latexMode, final List<? extends FlowToken> contents, final int startIndex, final int endIndex, final ComputedStyle computedStyle)
createFromSingleTokenback to summary
public static ArgumentContainerToken createFromSingleToken(final LaTeXMode latexMode, final FlowToken content)
createFromSingleTokenback to summary
public static ArgumentContainerToken createFromSingleToken(final LaTeXMode latexMode, final FlowToken content, final ComputedStyle computedStyle)
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.