![JAR search and dependency download from the Maven repository](/logo.png)
com.creativewidgetworks.goldparser.engine.LRStateList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of goldengine Show documentation
Show all versions of goldengine Show documentation
Java implementation of Devin Cook's GOLD Parser engine
package com.creativewidgetworks.goldparser.engine;
import java.util.ArrayList;
/**
* LRStateList
*
* Manages a list of LRState objects.
*
* Dependencies:
* @LRState
*
* @author Devin Cook (http://www.DevinCook.com/GOLDParser)
* @author Ralph Iden (http://www.creativewidgetworks.com), port to Java
* @version 5.0.0
*/
public class LRStateList extends ArrayList {
private int initialState;
/**
* Constructor that establishes the size of the list and creates placeholder
* objects so the list can be accessed in a "random" fashion when setting
* items.
* @param size
*/
public LRStateList(int size) {
super(size);
initialState = 0;
for (int i = 0; i < size; i++) {
add(null);
}
}
public int getInitialState() {
return initialState;
}
public void setInitialState(int initialState) {
this.initialState = initialState;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy