*/
public ActionList createActionList(boolean keepOffsets)
{
processSkipEntries();
ActionList list = new ActionList(keepOffsets);
list.grow(count);
Action a;
int length = actions.length;
if (keepOffsets)
{
for (int i=0; i < length; i++)
{
int offset = startOffset+i;
if ((a=actions[i]) != null)
list.insert(offset, a);
if ((a=lines[i]) != null)
list.insert(offset, a);
if ((a=registers[i]) != null)
list.insert(offset, a);
if ((a=labels[i]) != null)
list.insert(offset, a);
}
if ((a=labels[length]) != null)
list.insert(startOffset+length, a);
}
else
{
for (int i=0; i < length; i++)
{
if ((a=labels[i]) != null)
list.append(a);
if ((a=lines[i]) != null)
list.append(a);
if ((a=registers[i]) != null)
list.append(a);
if ((a=actions[i]) != null)
list.append(a);
}
if ((a=labels[length]) != null)
list.append(a);
}
return list;
}