Package org.scilab.forge.jlatexmath
Class MacroInfo
java.lang.Object
org.scilab.forge.jlatexmath.MacroInfo
A command of the formulas: its number of arguments, and what it does. The
predefined commands are
PredefMacroInfo, which override invoke(org.scilab.forge.jlatexmath.TeXParser, java.lang.String[]);
the commands that a formula defines (\newcommand) have a
MacroInfo.MacroHandler. There is no reflection (Method.invoke): it does
not work in the TeaVM C build.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWhat a command defined by a formula does. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMacroInfo(int nbArgs) MacroInfo(int nbArgs, int posOpts) MacroInfo(MacroInfo.MacroHandler handler, int nbArgs) MacroInfo(MacroInfo.MacroHandler handler, int nbArgs, int posOpts) -
Method Summary
-
Field Details
-
Commands
-
nbArgs
public int nbArgs -
hasOptions
public boolean hasOptions -
posOpts
public int posOpts
-
-
Constructor Details
-
MacroInfo
-
MacroInfo
-
MacroInfo
public MacroInfo(int nbArgs, int posOpts) -
MacroInfo
public MacroInfo(int nbArgs)
-
-
Method Details
-
invoke
- Throws:
ParseException
-