MathIntegerParser
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 MathIntegerParser

    java.lang.Object
      tcra.MathTypeParser
          tcra.MathIntegerParser

    public class MathIntegerParser

extends MathTypeParser

MathIntegerParser is used to parse a MathInteger out of a String. If a valid integer can not be parsed, a MathFormatException is thrown.

Constructor Summary
`MathIntegerParser()` Default constructor.

Method Summary
`MathInteger` | `parse(java.lang.StringBuilder input)` Consumes all the characters from the front of a String until it finds a ',' or '>'.

Methods inherited from class tcra.MathTypeParser
`eatWhitespace`

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

Constructor Detail

### MathIntegerParser

    public MathIntegerParser()

  Default constructor.

Method Detail

### parse

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

  Consumes all the characters from the front of a String until it finds a ',' or '>'. Then Integer is used to convert the String into an integer.

  Overrides:
    `parse` in class `MathTypeParser`
  Parameters:
    `input` - String that contains an integer at the front.
  Returns:
    MathInteger containing the integer value parsed and a reference to this MathIntegerParser.
  Throws:
    `MathFormatException` - If what is read is not a valid integer.

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