public abstract class Token extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ComputedStyle |
computedStyle |
protected EnumMap<InterpretationType,Interpretation> |
interpretationMap
Interpretation(s) of this token, if it can be readily deduced from the input.
|
protected LaTeXMode |
latexMode
LaTeX Mode that this token was parsed in
|
protected FrozenSlice |
slice
Extent of this entire token
|
protected TokenType |
type
Classifies the token
|
| Modifier | Constructor and Description |
|---|---|
protected |
Token(FrozenSlice slice,
TokenType type,
LaTeXMode latexMode,
EnumMap<InterpretationType,Interpretation> interpretationMap) |
protected |
Token(FrozenSlice slice,
TokenType type,
LaTeXMode latexMode,
Interpretation... interpretations) |
| Modifier and Type | Method and Description |
|---|---|
ComputedStyle |
getComputedStyle() |
Interpretation |
getInterpretation(InterpretationType type) |
EnumMap<InterpretationType,Interpretation> |
getInterpretationMap() |
LaTeXMode |
getLatexMode() |
MathCharacter |
getMathCharacter() |
int |
getMathCharacterCodePoint() |
FrozenSlice |
getSlice() |
TokenType |
getType() |
boolean |
hasInterpretationType(InterpretationType... types) |
boolean |
isCommand(BuiltinCommand command) |
boolean |
isEnvironment(BuiltinEnvironment environment) |
void |
setComputedStyle(ComputedStyle computedStyle) |
String |
toString() |
protected final FrozenSlice slice
protected final TokenType type
protected final LaTeXMode latexMode
protected final EnumMap<InterpretationType,Interpretation> interpretationMap
protected ComputedStyle computedStyle
protected Token(FrozenSlice slice, TokenType type, LaTeXMode latexMode, Interpretation... interpretations)
protected Token(FrozenSlice slice, TokenType type, LaTeXMode latexMode, EnumMap<InterpretationType,Interpretation> interpretationMap)
public FrozenSlice getSlice()
public TokenType getType()
public LaTeXMode getLatexMode()
public EnumMap<InterpretationType,Interpretation> getInterpretationMap()
public Interpretation getInterpretation(InterpretationType type)
public ComputedStyle getComputedStyle()
public void setComputedStyle(ComputedStyle computedStyle)
public boolean hasInterpretationType(InterpretationType... types)
public boolean isCommand(BuiltinCommand command)
public boolean isEnvironment(BuiltinEnvironment environment)
public MathCharacter getMathCharacter()
public int getMathCharacterCodePoint()
Copyright © 2008–2026 The University of Edinburgh. All rights reserved.