MathTypeParser
Date: 2007-08-14

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## tcra
Class MathTypeParser

    java.lang.Object
      tcra.MathTypeParser

Direct Known Subclasses:
  MathIntegerParser, MathStringParser

    public class MathTypeParser

extends java.lang.Object

MathTypeParser is the base MathType parser that must be extended to parser a specific MathType.

Constructor Summary
`MathTypeParser()`

Method Summary
`protected void` | `eatWhitespace(java.lang.StringBuilder input)` Removes all leading whitespaces.
`MathType` | `parse(java.lang.StringBuilder input)` Does nothing.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MathTypeParser

    public MathTypeParser()

Method Detail

### parse

    public MathType parse(java.lang.StringBuilder input)
                   throws MathFormatException

  Does nothing. Must be overridden by subclasses. All parse functions in subclasses must be destructive to the StringBuilder provided.

  Parameters:
    `input` - StringBuilder to be parsed for whatever MathType the parser is built for.
  Returns:
    MathType the parser is built for.
  Throws:
    `MathFormatException` - If the StringBuilder provided does not match the pattern required by the parser.

### eatWhitespace

    protected void eatWhitespace(java.lang.StringBuilder input)

  Removes all leading whitespaces.

  Parameters:
    `input` - StringBuilder to be trimmed.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD