public class DecodeReturn extends Object
In case of an error, type is set to DecodeReturn.T_ERROR, pos is kept at the token where the error occured, and s is set to an error message.
| Modifier and Type | Field and Description |
|---|---|
double |
d
Stores floats, doubles
|
String |
data
The DecodeReturn string that's read from.
|
long |
l
Stores booleans (0=false), bytes, chars, shorts, ints, longs
|
int |
lineNumber
The Line number, if it has been posted.
|
int |
pos
The DecodeReturn new position in the string.
|
String |
s
Stores strings, error messages
|
static byte |
T_BOOLEAN |
static byte |
T_BYTE |
static byte |
T_CHAR |
static byte |
T_CHARACTER
Same as T_CHAR
|
static byte |
T_DOUBLE |
static byte |
T_ERROR
The actual error is stored in the String slot
|
static byte |
T_FLOAT |
static byte |
T_INT |
static byte |
T_INTEGER
Same as T_INT
|
static byte |
T_LONG |
static byte |
T_SHORT |
static byte |
T_STRING |
byte |
type
The DecodeReturn type
|
| Constructor and Description |
|---|
DecodeReturn(String _data)
Use this to make a new DecodeReturn starting at position 0
|
DecodeReturn(String _data,
int _pos)
Use this to make a new DecodeReturn starting at some position
|
| Modifier and Type | Method and Description |
|---|---|
DecodeReturn |
reset(String _data)
Use this to reuse your DecodeReturn for another string
|
DecodeReturn |
reset(String _data,
int _pos)
Use this to reuse your DecodeReturn for another string
|
DecodeReturn |
scanAt(int _pos)
Sets the DecodeReturn to begin scanning at _pos, which should be valid.
|
public static final byte T_ERROR
public static final byte T_BOOLEAN
public static final byte T_BYTE
public static final byte T_CHAR
public static final byte T_CHARACTER
public static final byte T_SHORT
public static final byte T_INT
public static final byte T_INTEGER
public static final byte T_LONG
public static final byte T_FLOAT
public static final byte T_DOUBLE
public static final byte T_STRING
public int lineNumber
public byte type
public String data
public int pos
public long l
public double d
public String s
public DecodeReturn(String _data)
public DecodeReturn(String _data, int _pos)
public DecodeReturn scanAt(int _pos)
public DecodeReturn reset(String _data)
public DecodeReturn reset(String _data, int _pos)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.