|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttcra.math.MathTypeParser
public abstract class MathTypeParser
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. |
protected int |
nextToken(java.lang.String input)
Returns the index of the next non-whitespace character. |
abstract 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 |
|---|
public MathTypeParser()
| Method Detail |
|---|
public abstract MathType parse(java.lang.StringBuilder input)
throws MathFormatException
input - StringBuilder to be parsed for whatever
MathType the parser is built for.
MathFormatException - If the StringBuilder provided
does not match the pattern
required by the parser.protected void eatWhitespace(java.lang.StringBuilder input)
input - StringBuilder to be trimmed.protected int nextToken(java.lang.String input)
input - String to search
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||