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

import com.l7tech.message.Message;
import com.l7tech.message.TcpKnob;
import com.l7tech.policy.variable.Syntax;
import com.l7tech.server.policy.variable.ExpandVariables;
import com.l7tech.server.policy.variable.MessageSelector;
import com.l7tech.util.Functions;

class fg
implements MessageSelector.MessageAttributeSelector {
    private final Functions.Unary<Object, TcpKnob> a;

    private fg(Functions.Unary<Object, TcpKnob> unary) {
        this.a = unary;
    }

    @Override
    public ExpandVariables.Selector.Selection select(Message message, String string, Syntax.SyntaxErrorHandler syntaxErrorHandler, boolean bl2) {
        TcpKnob tcpKnob = (TcpKnob)message.getKnob(TcpKnob.class);
        if (tcpKnob == null) {
            return null;
        }
        return new ExpandVariables.Selector.Selection(this.a.call((Object)tcpKnob));
    }
}

