|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.jel.Parser
public class Parser
| Field Summary | |
|---|---|
protected int |
c
|
int |
ct_column
Column, where the current token started |
int |
ct_line
Line, where the current token started |
int |
type
type of the currect token |
java.lang.Object |
val
value of the current |
| Constructor Summary | |
|---|---|
Parser(java.lang.String in,
Library lib)
Initializes the parser. |
|
| Method Summary | |
|---|---|
protected void |
consume(int cc)
|
boolean |
isCast()
|
void |
nextToken()
|
OP |
parse(java.lang.Class resultType)
Parses expression. |
protected int |
read()
Reads character from underlying Reader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int c
public int ct_column
public int ct_line
public java.lang.Object val
public int type
| Constructor Detail |
|---|
public Parser(java.lang.String in,
Library lib)
in - expression to parselib - library to resolve functions in| Method Detail |
|---|
protected int read()
Additionally it counts line and column numbers. The read character is automatically set as a current char of this Tokenizer.
protected void consume(int cc)
throws CompilationException
CompilationException
public void nextToken()
throws CompilationException
CompilationExceptionpublic boolean isCast()
public OP parse(java.lang.Class resultType)
throws CompilationException
resultType - the type to convert the result into
CompilationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||