/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.Functions$Unary
 */
package com.l7tech.server.policy.variable;

import com.l7tech.server.policy.assertion.ServerAssertion;
import com.l7tech.server.policy.variable.DebugTraceVariableContext;
import com.l7tech.server.policy.variable.ExpandVariables;
import com.l7tech.util.Functions;
import java.util.ArrayList;
import java.util.Collection;

class ax
implements Functions.Unary<ExpandVariables.Selector.Selection, DebugTraceVariableContext> {
    ax() {
    }

    public ExpandVariables.Selector.Selection call(DebugTraceVariableContext debugTraceVariableContext) {
        Object var5_5;
        Collection<Integer> collection = debugTraceVariableContext.getContext().getOriginalContext().getAssertionOrdinalPath();
        ArrayList<Integer> arrayList = new ArrayList<Integer>(collection);
        ServerAssertion serverAssertion = debugTraceVariableContext.getContext().getTracedAssertion();
        Object v0 = var5_5 = serverAssertion == null ? null : serverAssertion.getAssertion();
        if (var5_5 != null) {
            arrayList.add(var5_5.getOrdinal());
        }
        return new ExpandVariables.Selector.Selection(arrayList.toArray(new Integer[arrayList.size()]));
    }
}

