|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kmy.jint.parser.AbstractTokenizer
This class represents a stream of Java/Jint tokens. Method nextToken() can be used to fill in next token's tType and possibly other fields. Method close() frees resources used by this stream.
Field Summary | |
double |
dVal
Float/double token value. |
int |
filePos
Integer that represents token position inside the stream. |
Identifier |
ident
Identifier token value. |
long |
lVal
Integer/long token value. |
NameTable |
nameTable
Field that stores a NameTable that was passed to constructor. |
java.lang.String |
sVal
String token value. |
java.lang.String |
sVal2
Additional String token value. |
int |
tType
Token type. |
Constructor Summary | |
protected |
AbstractTokenizer(NameTable nameTable)
Create and initialize an AbstractTokenizer instance. |
Method Summary | |
abstract void |
close()
Frees resources held by this stream. |
static int |
getColumn(int fpos)
Extracts column number in a stream given the stream position. |
static int |
getLine(int fpos)
Extracts line number in a stream given the stream position. |
static int |
makeFilePos(int line,
int col)
Creates representation of stream position based on line and column values. |
abstract void |
nextToken()
Reads new token from the stream. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public int tType
public long lVal
public double dVal
public java.lang.String sVal
public java.lang.String sVal2
public Identifier ident
public int filePos
public NameTable nameTable
Constructor Detail |
protected AbstractTokenizer(NameTable nameTable)
Method Detail |
public abstract void nextToken()
public abstract void close()
public static int makeFilePos(int line, int col)
public static int getLine(int fpos)
public static int getColumn(int fpos)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |