public final class BuiltinCommand extends java.lang.Object implements Command
Command that has been defined internally via a SnugglePackage.
All of the core LaTeX macros have been defined in this way - see CorePackageDefinitions.
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.EnumSet<LaTeXMode> |
allowedModes |
protected boolean |
allowingOptionalArgument |
protected int |
argumentCount |
protected H |
domBuildingHandler |
protected java.util.EnumMap<InterpretationType,Interpretation> |
interpretationMap |
protected java.lang.String |
texName |
protected TextFlowContext |
textFlowContext |
| 构造器和说明 |
|---|
BuiltinCommand(java.lang.String texName,
CommandType commandType,
boolean allowingOptionalArgument,
int argumentCount,
java.util.EnumSet<LaTeXMode> allowedModes,
LaTeXMode[] argumentModes,
java.util.EnumMap<InterpretationType,Interpretation> interpretations,
CommandHandler domBuilderHandler,
TextFlowContext textFlowContext,
CombinerTargetMatcher combinerTargetMatcher) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.EnumSet<LaTeXMode> |
getAllowedModes() |
int |
getArgumentCount()
Returns the number of mandatory arguments this command expects, which will be zero
or greater.
|
LaTeXMode |
getArgumentMode(int argumentIndex)
Returns the LaTeX mode that each argument should be parsed in, starting with the
optional argument (if used) and then each mandatory argument in order.
|
CombinerTargetMatcher |
getCombinerTargetMatcher() |
H |
getDOMBuildingHandler() |
Interpretation |
getInterpretation(InterpretationType type) |
java.util.EnumMap<InterpretationType,Interpretation> |
getInterpretationMap() |
MathCharacter |
getMathCharacter() |
int |
getMathCharacterCodePoint() |
java.lang.String |
getTeXName()
Returns the TeX name for this command or environment.
|
TextFlowContext |
getTextFlowContext() |
CommandType |
getType() |
boolean |
hasInterpretation(InterpretationType type) |
boolean |
isAllowingOptionalArgument()
Returns whether this command/environment takes an optional argument.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetArgumentCount, getTeXName, isAllowingOptionalArgumentprotected final java.lang.String texName
protected final boolean allowingOptionalArgument
protected final int argumentCount
protected final java.util.EnumSet<LaTeXMode> allowedModes
protected final java.util.EnumMap<InterpretationType,Interpretation> interpretationMap
protected final TextFlowContext textFlowContext
protected final H domBuildingHandler
public BuiltinCommand(java.lang.String texName,
CommandType commandType,
boolean allowingOptionalArgument,
int argumentCount,
java.util.EnumSet<LaTeXMode> allowedModes,
LaTeXMode[] argumentModes,
java.util.EnumMap<InterpretationType,Interpretation> interpretations,
CommandHandler domBuilderHandler,
TextFlowContext textFlowContext,
CombinerTargetMatcher combinerTargetMatcher)
public CommandType getType()
public LaTeXMode getArgumentMode(int argumentIndex)
CommandOrEnvironmentgetArgumentMode 在接口中 CommandOrEnvironmentpublic CombinerTargetMatcher getCombinerTargetMatcher()
public MathCharacter getMathCharacter()
public int getMathCharacterCodePoint()
public java.lang.String getTeXName()
CommandOrEnvironmentgetTeXName 在接口中 CommandOrEnvironmentpublic boolean isAllowingOptionalArgument()
CommandOrEnvironmentpublic int getArgumentCount()
CommandOrEnvironmentgetArgumentCount 在接口中 CommandOrEnvironmentpublic java.util.EnumSet<LaTeXMode> getAllowedModes()
public java.util.EnumMap<InterpretationType,Interpretation> getInterpretationMap()
public boolean hasInterpretation(InterpretationType type)
public Interpretation getInterpretation(InterpretationType type)
public TextFlowContext getTextFlowContext()
public H getDOMBuildingHandler()
public final java.lang.String toString()
toString 在类中 java.lang.Object