Modifier and Type | Field and Description |
---|---|
static int |
BLOCK |
static int |
END |
static int |
ERROR_EOL |
static int |
FLOAT |
static int |
INT |
static int |
LONG |
static int |
NEWLINE |
static int |
NONE |
static int |
PARTIAL_END |
static int |
WORD |
Constructor and Description |
---|
LexicalAnalyser(InputStream r)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected ProtocolException |
getException(String errorMsg)
Get the the protocol exception
|
BigDecimal |
getFloat()
Get the float value of 'word'
|
int |
getIntValue()
Get the integer value 'word'
|
int |
getLookahead()
Get the value 'lookahead'
|
long |
getValue()
Get the value the string
|
String |
getWord()
Get the 'word' string
|
int |
nextToken()
Find the next token
|
char |
read()
Reads the char and stops by '\r'
|
String |
readBlock()
Read the context of the block
|
public static final int NEWLINE
public static final int END
public static final int WORD
public static final int BLOCK
public static final int INT
public static final int FLOAT
public static final int LONG
public static final int NONE
public static final int PARTIAL_END
public static final int ERROR_EOL
public LexicalAnalyser(InputStream r)
r
- - The input streampublic int getLookahead() throws IOException
IOException
- engine crash or problem in communication.public String getWord()
public int getIntValue()
public long getValue()
public BigDecimal getFloat()
public String readBlock() throws IOException
IOException
- engine crash or problem in communication.public char read() throws IOException
IOException
- engine crash or problem in communication.public int nextToken() throws IOException
IOException
- engine crash or problem in communication.protected ProtocolException getException(String errorMsg)
errorMsg
- - The error message stringCopyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.