public final class BuiltinEnvironment extends Object implements Environment
SnugglePackage.BuiltinCommand,
CorePackageDefinitions| Modifier and Type | Field and Description |
|---|---|
protected EnumSet<LaTeXMode> |
allowedModes |
protected boolean |
allowingOptionalArgument |
protected int |
argumentCount |
protected H |
domBuildingHandler |
protected EnumMap<InterpretationType,Interpretation> |
interpretationMap |
protected String |
texName |
protected TextFlowContext |
textFlowContext |
| Constructor and Description |
|---|
BuiltinEnvironment(String texName,
boolean allowingOptionalArgument,
int argumentCount,
EnumSet<LaTeXMode> allowedModes,
LaTeXMode contentMode,
EnumMap<InterpretationType,Interpretation> interpretations,
EnvironmentHandler domBuildingHandler,
TextFlowContext textFlowContext) |
| Modifier and Type | Method and Description |
|---|---|
EnumSet<LaTeXMode> |
getAllowedModes() |
int |
getArgumentCount()
Returns the number of mandatory arguments this command expects, which will be zero
or greater.
|
LaTeXMode |
getArgumentMode(int argumentIndex)
(Currently all built-in environments parse their arguments in
LaTeXMode.PARAGRAPH.) |
LaTeXMode |
getContentMode()
Specifies which mode to parse content in.
|
H |
getDOMBuildingHandler() |
Interpretation |
getInterpretation(InterpretationType type) |
EnumMap<InterpretationType,Interpretation> |
getInterpretationMap() |
String |
getTeXName()
Returns the TeX name for this command or environment.
|
TextFlowContext |
getTextFlowContext() |
boolean |
hasInterpretation(InterpretationType type) |
boolean |
isAllowingOptionalArgument()
Returns whether this command/environment takes an optional argument.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetArgumentCount, getTeXName, isAllowingOptionalArgumentprotected final String texName
protected final boolean allowingOptionalArgument
protected final int argumentCount
protected final EnumMap<InterpretationType,Interpretation> interpretationMap
protected final TextFlowContext textFlowContext
protected final H domBuildingHandler
public BuiltinEnvironment(String texName, boolean allowingOptionalArgument, int argumentCount, EnumSet<LaTeXMode> allowedModes, LaTeXMode contentMode, EnumMap<InterpretationType,Interpretation> interpretations, EnvironmentHandler domBuildingHandler, TextFlowContext textFlowContext)
public LaTeXMode getArgumentMode(int argumentIndex)
LaTeXMode.PARAGRAPH.)getArgumentMode in interface CommandOrEnvironmentpublic LaTeXMode getContentMode()
EnvironmentgetContentMode in interface Environmentpublic String getTeXName()
CommandOrEnvironmentgetTeXName in interface CommandOrEnvironmentpublic boolean isAllowingOptionalArgument()
CommandOrEnvironmentisAllowingOptionalArgument in interface CommandOrEnvironmentpublic int getArgumentCount()
CommandOrEnvironmentgetArgumentCount in interface CommandOrEnvironmentpublic EnumMap<InterpretationType,Interpretation> getInterpretationMap()
public boolean hasInterpretation(InterpretationType type)
public Interpretation getInterpretation(InterpretationType type)
public TextFlowContext getTextFlowContext()
public H getDOMBuildingHandler()
Copyright © 2008–2026 The University of Edinburgh. All rights reserved.