导航菜单

页面标题

页面副标题

Oolka v2.4.42 - JaninoEventEvaluator.java 源代码

正在查看: Oolka v2.4.42 应用的 JaninoEventEvaluator.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package ch.qos.logback.classic.boolex;

import ch.qos.logback.classic.spi.c;
import ch.qos.logback.classic.spi.d;
import ch.qos.logback.classic.spi.f;
import ch.qos.logback.classic.spi.i;
import ch.qos.logback.core.CoreConstants;
import ch.qos.logback.core.boolex.JaninoEventEvaluatorBase;
import ch.qos.logback.core.boolex.Matcher;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class JaninoEventEvaluator extends JaninoEventEvaluatorBase<c> {
    public static final List<String> l;
    public static final List<Class> m;

    static {
        ArrayList arrayList = new ArrayList();
        l = arrayList;
        ArrayList arrayList2 = new ArrayList();
        m = arrayList2;
        arrayList.add("DEBUG");
        arrayList.add("INFO");
        arrayList.add("WARN");
        arrayList.add("ERROR");
        arrayList.add("event");
        arrayList.add("message");
        arrayList.add("formattedMessage");
        arrayList.add("logger");
        arrayList.add("loggerContext");
        arrayList.add("level");
        arrayList.add("timeStamp");
        arrayList.add("marker");
        arrayList.add("mdc");
        arrayList.add("throwableProxy");
        arrayList.add("throwable");
        Class cls = Integer.TYPE;
        arrayList2.add(cls);
        arrayList2.add(cls);
        arrayList2.add(cls);
        arrayList2.add(cls);
        arrayList2.add(c.class);
        arrayList2.add(String.class);
        arrayList2.add(String.class);
        arrayList2.add(String.class);
        arrayList2.add(f.class);
        arrayList2.add(cls);
        arrayList2.add(Long.TYPE);
        arrayList2.add(org.slf4j.f.class);
        arrayList2.add(Map.class);
        arrayList2.add(d.class);
        arrayList2.add(Throwable.class);
    }

    @Override
    public String P1() {
        String Q1 = Q1();
        if (!Q1.contains("return")) {
            Q1 = "return " + Q1 + ";";
            Z("Adding [return] prefix and a semicolon suffix. Expression becomes [" + Q1 + "]");
            Z("See also http://logback.qos.ch/codes.html#block");
        }
        return "import ch.qos.logback.classic.Level;\r\n" + Q1;
    }

    @Override
    public String[] W1() {
        ArrayList arrayList = new ArrayList();
        arrayList.addAll(l);
        for (int i = 0; i < this.i.size(); i++) {
            arrayList.add(this.i.get(i).getName());
        }
        return (String[]) arrayList.toArray(CoreConstants.c);
    }

    @Override
    public Class[] a2() {
        ArrayList arrayList = new ArrayList();
        arrayList.addAll(m);
        for (int i = 0; i < this.i.size(); i++) {
            arrayList.add(Matcher.class);
        }
        return (Class[]) arrayList.toArray(CoreConstants.d);
    }

    @Override
    public Object[] b2(c cVar) {
        int size = this.i.size();
        Object[] objArr = new Object[l.size() + size];
        int i = 0;
        objArr[0] = ch.qos.logback.classic.a.g;
        objArr[1] = ch.qos.logback.classic.a.f;
        objArr[2] = ch.qos.logback.classic.a.e;
        objArr[3] = ch.qos.logback.classic.a.d;
        objArr[4] = cVar;
        objArr[5] = cVar.getMessage();
        objArr[6] = cVar.d();
        objArr[7] = cVar.l();
        objArr[8] = cVar.f();
        objArr[9] = cVar.b().c();
        objArr[10] = Long.valueOf(cVar.k());
        objArr[11] = cVar.g();
        objArr[12] = cVar.n();
        d m2 = cVar.m();
        if (m2 != null) {
            objArr[13] = m2;
            if (m2 instanceof i) {
                objArr[14] = ((i) m2).h();
            } else {
                objArr[14] = null;
            }
        } else {
            objArr[13] = null;
            objArr[14] = null;
        }
        int i2 = 15;
        while (i < size) {
            objArr[i2] = this.i.get(i);
            i++;
            i2++;
        }
        return objArr;
    }
}