// recompute the level storage ..
int minLevel = Integer.MIN_VALUE;
final LevelList levelList = new LevelList();
for (int i = 0; i < length; i++)
{
final Expression expression = expressions[i];
// The list maps the current position to the level ..
final int dependencyLevel = expression.getDependencyLevel();
levelList.add(IntegerCache.getInteger(i), dependencyLevel);
if (minLevel < dependencyLevel)
{
minLevel = dependencyLevel;
}
}
if (minLevel > Integer.MIN_VALUE)
{
if (isIncludeStructuralProcessing())
{
for (int i = 0; i < length; i++)
{
final Expression expression = expressions[i];
// The list maps the current position to the level ..
final int dependencyLevel = expression.getDependencyLevel();
if (dependencyLevel == minLevel && (expression instanceof Function == false))
{
levelList.add(IntegerCache.getInteger(i), minLevel);
}
}
}
}
final Integer[] levels = levelList.getLevelsDescendingArray();
this.levelData = new LevelStorage[levels.length];
final int expressionsCount = levelList.size();
final int capacity = Math.min(20, expressionsCount);
final IntList expressionPositions = new IntList(capacity);
final IntList activeExpressions = new IntList(capacity);
final IntList functions = new IntList(capacity);
final IntList pageEventListeners = new IntList(capacity);
final IntList prepareEventListeners = new IntList(capacity);
final boolean prepareEventListener = false;
for (int i = 0; i < levels.length; i++)
{
final int currentLevel = levels[i].intValue();
final Integer[] data = (Integer[])
levelList.getElementArrayForLevel(currentLevel, ExpressionDataRow.EMPTY_INTEGERARRAY);
for (int x = 0; x < data.length; x++)
{
final Integer position = data[x];
final Expression ex = this.expressions[position.intValue()];
final int globalPosition = position.intValue();
expressionPositions.add(globalPosition);
activeExpressions.add(globalPosition);
if (ex instanceof Function == false)