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

public final Class UserDefinedCommand

extends UserDefinedCommandOrEnvironment
implements Command
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.definitions.Command, uk.ac.ed.ph.snuggletex.definitions.CommandOrEnvironment
Imports
uk.ac.ed.ph.snuggletex.internal.FrozenSlice

Represents a user-defined Command, i.e. one defined in the client data using \\newcommand.
Author
David McKain
Version
$Revision$
See Also
UserDefinedEnvironment

Field Summary

Modifier and TypeField and Description
private final FrozenSlice
Inherited from uk.ac.ed.ph.snuggletex.definitions.UserDefinedCommandOrEnvironment:
argumentCountoptionalArgumenttexName

Constructor Summary

AccessConstructor and Description
public
UserDefinedCommand(final String texName, final String optionalArgument, final int argumentCount, final FrozenSlice definitionSlice)

Method Summary

Modifier and TypeMethod and Description
public FrozenSlice
Inherited from uk.ac.ed.ph.snuggletex.definitions.UserDefinedCommandOrEnvironment:
getArgumentCountgetArgumentModegetOptionalArgumentgetTeXNameisAllowingOptionalArgumenttoString

Field Detail

definitionSliceback to summary
private final FrozenSlice definitionSlice

Constructor Detail

UserDefinedCommandback to summary
public UserDefinedCommand(final String texName, final String optionalArgument, final int argumentCount, final FrozenSlice definitionSlice)

Method Detail

getDefinitionSliceback to summary
public FrozenSlice getDefinitionSlice()