Modifier and Type | Field and Description |
---|---|
protected Object[] |
examples
An array of examples, returned one at a time by the parser.
|
protected int |
index
The pointer to the current cell of the
examples array. |
Constructor and Description |
---|
ArrayParser()
Initializes the parser with an empty example array.
|
ArrayParser(Object[] e)
Creates the parser with the supplied example array.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Frees any resources this parser may be holding.
|
Object[] |
getExamples()
Returns the value of
examples . |
Object |
next()
Returns the next example in the array and increments the
index pointer. |
void |
reset()
Resets the
index pointer to 0. |
protected int index
examples
array.protected Object[] examples
public ArrayParser()
public ArrayParser(Object[] e)
e
- The array of examplesCopyright © 2016. All rights reserved.