|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.ParsingText
This internal class for parsing text. It just saves the text as an array, keeping the current position in the text.
Field Summary | |
char[] |
a
|
int |
len
|
int |
pos
|
Constructor Summary | |
ParsingText(java.lang.String s)
|
Method Summary | |
void |
advance(int n)
|
int |
lookup(java.lang.String[] tSymbol)
Try to match the current text to a Symbol from a List of Symbols |
int |
lookup(java.lang.String[] tSymbol,
int len)
Try to match the current text to a Symbol from a List |
double |
parseFactor()
Interpret a real number as (+/-)numx10+pow |
int |
parseInt()
Try to match an Integer Number |
double |
parseSexa()
Interpret a sexagesimal number |
void |
set(int n)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public char[] a
public int len
public int pos
Constructor Detail |
public ParsingText(java.lang.String s)
Method Detail |
public final void set(int n)
public final void advance(int n)
public final java.lang.String toString()
public final int lookup(java.lang.String[] tSymbol, int len)
tSymbol
- table of Symbolslen
- exact length of text to match
public final int lookup(java.lang.String[] tSymbol)
tSymbol
- a table of Symbols
public final int parseInt()
public final double parseFactor()
public final double parseSexa()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |