public abstract class Token
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected ComputedStyle |
computedStyle |
protected java.util.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
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
Token(FrozenSlice slice,
TokenType type,
LaTeXMode latexMode,
java.util.EnumMap<InterpretationType,Interpretation> interpretationMap) |
protected |
Token(FrozenSlice slice,
TokenType type,
LaTeXMode latexMode,
Interpretation... interpretations) |
| 限定符和类型 | 方法和说明 |
|---|---|
ComputedStyle |
getComputedStyle() |
Interpretation |
getInterpretation(InterpretationType type) |
java.util.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) |
java.lang.String |
toString() |
protected final FrozenSlice slice
protected final TokenType type
protected final LaTeXMode latexMode
protected final java.util.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, java.util.EnumMap<InterpretationType,Interpretation> interpretationMap)
public FrozenSlice getSlice()
public TokenType getType()
public LaTeXMode getLatexMode()
public java.util.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()
public java.lang.String toString()
toString 在类中 java.lang.Object