import java.util.Map;
import org.simantics.acorn.ClusterManager;
+import org.simantics.acorn.exception.IllegalAcornStateException;
import org.simantics.acorn.internal.ClusterStream.ClusterEnum;
import org.simantics.acorn.internal.ClusterStream.Data;
import org.simantics.acorn.internal.ClusterStream.StmEnum;
final Map<ClusterUID, Integer> clusterKeyCache = new HashMap<ClusterUID, Integer>();
- public int getResourceKey(ClusterUID uid, int index) {
+ public int getResourceKey(ClusterUID uid, int index) throws IllegalAcornStateException {
Integer match = clusterKeyCache.get(uid);
if(match != null) return match+index;
int key = manager.getResourceKeyWitoutMutex(uid, 0);
int lows[] = new int[2];
int foreignRefs[] = new int[2];
- private void processStatement(int op, StmEnum stmEnum, ClusterEnum p, ClusterEnum o) {
+ private void processStatement(int op, StmEnum stmEnum, ClusterEnum p, ClusterEnum o) throws IllegalAcornStateException {
int curPos = pos-1-24;
}
- public void process() {
+ public void process() throws IllegalAcornStateException {
foreignPos = 0;