/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Exception
 *  java.lang.Object
 */
package org.dom4j.rule;

import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.Node;
import org.dom4j.rule.Action;
import org.dom4j.rule.Mode;
import org.dom4j.rule.RuleManager;

class RuleManager$1
implements Action {
    private final RuleManager this$0;
    private final Mode val$mode;

    RuleManager$1(RuleManager ruleManager, Mode mode) throws Exception {
        this.this$0 = ruleManager;
        this.val$mode = mode;
    }

    /*
     * Enabled aggressive block sorting
     */
    @Override
    public void run(Node node) throws Exception {
        if (node instanceof Element) {
            this.val$mode.applyTemplates((Element)node);
            return;
        } else {
            if (!(node instanceof Document)) return;
            {
                this.val$mode.applyTemplates((Document)node);
                return;
            }
        }
    }
}

