protected Token(final FrozenSlice slice, final TokenType type, final LaTeXMode latexMode, final Interpretation... interpretations) { this.slice = slice; this.type = type; this.latexMode = latexMode; this.interpretationMap = SnugglePackage.makeInterpretationMap(interpretations); }
protected Token(final FrozenSlice slice, final TokenType type, final LaTeXMode latexMode, final Interpretation... interpretations) { this.slice = slice; this.type = type; this.latexMode = latexMode; this.interpretationMap = SnugglePackage.makeInterpretationMap(interpretations); }
public BuiltinCommand addSimpleMathCommand(final String name, final MathInterpretation interpretation, final CommandHandler handler) { return addCommand(new BuiltinCommand(name, CommandType.SIMPLE, false, 0, Globals.MATH_MODE_ONLY, null, SnugglePackage.makeInterpretationMap(interpretation), handler, null, null)); }
public BuiltinCommand addComplexCommandSameArgMode(final String name, final boolean allowOptionalArgument, final int arguments, final EnumSet<LaTeXMode> allowedModes, final Interpretation interpretation, final CommandHandler handler, final TextFlowContext context) { return addCommand(new BuiltinCommand(name, CommandType.COMPLEX, allowOptionalArgument, arguments, allowedModes, null, SnugglePackage.makeInterpretationMap(interpretation), handler, context, null)); }
public BuiltinEnvironment addEnvironment(final String name, final boolean allowOptionalArgument, final int argumentCount, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode contentMode, final Interpretation interpretation, final EnvironmentHandler handler, final TextFlowContext context) { return addEnvironment(new BuiltinEnvironment(name, allowOptionalArgument, argumentCount, allowedModes, contentMode, SnugglePackage.makeInterpretationMap(interpretation), handler, context)); }
public BuiltinCommand addComplexCommandSameArgMode(final String name, final boolean allowOptionalArgument, final int arguments, final EnumSet<LaTeXMode> allowedModes, final Interpretation interpretation, final CommandHandler handler, final TextFlowContext context) { return addCommand(new BuiltinCommand(name, CommandType.COMPLEX, allowOptionalArgument, arguments, allowedModes, null, makeInterpretationMap(interpretation), handler, context, null)); }
public BuiltinCommand addComplexCommandOneArg(final String name, final boolean allowOptionalArgument, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode argumentMode, final Interpretation interpretation, final CommandHandler handler, final TextFlowContext context) { return addCommand(new BuiltinCommand(name, CommandType.COMPLEX, allowOptionalArgument, 1, allowedModes, new LaTeXMode[] { argumentMode }, makeInterpretationMap(interpretation), handler, context, null)); }
public BuiltinCommand addSimpleMathCommand(final String name, final MathInterpretation[] interpretations, final CommandHandler handler) { return addCommand(new BuiltinCommand(name, CommandType.SIMPLE, false, 0, Globals.MATH_MODE_ONLY, null, SnugglePackage.makeInterpretationMap(interpretations), handler, null, null)); }
public BuiltinEnvironment addEnvironment(final String name, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode contentMode, final Interpretation[] interpretations, final EnvironmentHandler handler, final TextFlowContext context) { return addEnvironment(new BuiltinEnvironment(name, false, 0, allowedModes, contentMode, SnugglePackage.makeInterpretationMap(interpretations), handler, context)); }
public BuiltinCommand addSimpleMathCommand(final String name, final MathInterpretation[] interpretations, final CommandHandler handler) { return addCommand(new BuiltinCommand(name, CommandType.SIMPLE, false, 0, Globals.MATH_MODE_ONLY, null, makeInterpretationMap(interpretations), handler, null, null)); }
public BuiltinCommand addSimpleCommand(final String name, final EnumSet<LaTeXMode> allowedModes, final Interpretation interpretation, final CommandHandler handler, final TextFlowContext context) { return addCommand(new BuiltinCommand(name, CommandType.SIMPLE, false, 0, allowedModes, null, SnugglePackage.makeInterpretationMap(interpretation), handler, context, null)); }
public BuiltinCommand addSimpleCommand(final String name, final EnumSet<LaTeXMode> allowedModes, final Interpretation[] interpretations, final CommandHandler handler, final TextFlowContext context) { return addCommand(new BuiltinCommand(name, CommandType.SIMPLE, false, 0, allowedModes, null, makeInterpretationMap(interpretations), handler, context, null)); }
public BuiltinCommand addComplexCommandSameArgMode(final String name, final boolean allowOptionalArgument, final int arguments, final EnumSet<LaTeXMode> allowedModes, final Interpretation interpretation, final CommandHandler handler, final TextFlowContext context) { return addCommand(new BuiltinCommand(name, CommandType.COMPLEX, allowOptionalArgument, arguments, allowedModes, null, makeInterpretationMap(interpretation), handler, context, null)); }
public BuiltinEnvironment addEnvironment(final String name, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode contentMode, final Interpretation interpretation, final EnvironmentHandler handler, final TextFlowContext context) { return addEnvironment(new BuiltinEnvironment(name, false, 0, allowedModes, contentMode, makeInterpretationMap(interpretation), handler, context)); }
public BuiltinEnvironment addEnvironment(final String name, final boolean allowOptionalArgument, final int argumentCount, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode contentMode, final Interpretation interpretation, final EnvironmentHandler handler, final TextFlowContext context) { return addEnvironment(new BuiltinEnvironment(name, allowOptionalArgument, argumentCount, allowedModes, contentMode, makeInterpretationMap(interpretation), handler, context)); }
public BuiltinCommand addSimpleMathCommand(final String name, final MathInterpretation interpretation, final CommandHandler handler) { return addCommand(new BuiltinCommand(name, CommandType.SIMPLE, false, 0, Globals.MATH_MODE_ONLY, null, makeInterpretationMap(interpretation), handler, null, null)); }
public BuiltinCommand addSimpleMathCommand(final String name, final MathInterpretation[] interpretations, final CommandHandler handler) { return addCommand(new BuiltinCommand(name, CommandType.SIMPLE, false, 0, Globals.MATH_MODE_ONLY, null, makeInterpretationMap(interpretations), handler, null, null)); }
public BuiltinEnvironment addEnvironment(final String name, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode contentMode, final Interpretation interpretation, final EnvironmentHandler handler, final TextFlowContext context) { return addEnvironment(new BuiltinEnvironment(name, false, 0, allowedModes, contentMode, makeInterpretationMap(interpretation), handler, context)); }
public BuiltinEnvironment addEnvironment(final String name, final boolean allowOptionalArgument, final int argumentCount, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode contentMode, final Interpretation interpretation, final EnvironmentHandler handler, final TextFlowContext context) { return addEnvironment(new BuiltinEnvironment(name, allowOptionalArgument, argumentCount, allowedModes, contentMode, makeInterpretationMap(interpretation), handler, context)); }
public BuiltinEnvironment addEnvironment(final String name, final EnumSet<LaTeXMode> allowedModes, final LaTeXMode contentMode, final Interpretation interpretation, final EnvironmentHandler handler, final TextFlowContext context) { return addEnvironment(new BuiltinEnvironment(name, false, 0, allowedModes, contentMode, SnugglePackage.makeInterpretationMap(interpretation), handler, context)); }