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

import com.l7tech.policy.assertion.Assertion;
import com.l7tech.server.policy.assertion.ServerAssertion;
import com.l7tech.server.policy.variable.DebugTraceVariableContext;
import com.l7tech.server.policy.variable.DebugTraceVariableContextSelector;
import com.l7tech.server.policy.variable.ExpandVariables;
import com.l7tech.util.Functions;

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

    public ExpandVariables.Selector.Selection call(DebugTraceVariableContext debugTraceVariableContext) {
        ServerAssertion serverAssertion = debugTraceVariableContext.getContext().getTracedAssertion();
        Assertion assertion = serverAssertion == null ? null : (Assertion)serverAssertion.getAssertion();
        return new ExpandVariables.Selector.Selection(DebugTraceVariableContextSelector.buildAssertionNumberStr(debugTraceVariableContext.getContext().getOriginalContext(), assertion));
    }
}

