|
||||||||||
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 |
Object |
val
value of the current |
Constructor Summary | |
---|---|
Parser(String in,
Library lib)
Initializes the parser. |
Method Summary | |
---|---|
protected void |
consume(int cc)
|
boolean |
isCast()
|
void |
nextToken()
|
OP |
parse(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 Object val
public int type
Constructor Detail |
---|
public Parser(String in, Library lib)
in
- expression to parselib
- library to resolve functions inMethod 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
CompilationException
public boolean isCast()
public OP parse(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 |