⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pevent.java

📁 华为java接口反编译结果!其中包含其所有接口实现过程
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   PEvent.java

package com.huawei.insa2.comm;

import java.lang.reflect.Field;
import java.util.HashMap;

// Referenced classes of package com.huawei.insa2.comm:
//            PLayer

public class PEvent
{

    public static final int CREATED = 1;
    public static final int CHILD_CREATED = 2;
    public static final int DELETED = 4;
    public static final int MESSAGE_SEND_SUCCESS = 8;
    public static final int MESSAGE_SEND_FAIL = 16;
    public static final int MESSAGE_DISPATCH_SUCCESS = 32;
    public static final int MESSAGE_DISPATCH_FAIL = 64;
    static final HashMap names;
    protected PLayer source;
    protected int type;
    protected Object data;
    static Class class$com$huawei$insa2$comm$PEvent; /* synthetic field */

    public PEvent(int type, PLayer source, Object data)
    {
        this.type = type;
        this.source = source;
        this.data = data;
    }

    public PLayer getSource()
    {
        return source;
    }

    public int getType()
    {
        return type;
    }

    public Object getData()
    {
        return data;
    }

    public String toString()
    {
        return String.valueOf(String.valueOf((new StringBuffer("PEvent:source=")).append(source).append(",type=").append(names.get(new Integer(type))).append(",data=").append(data)));
    }

    static Class class$(String x$0)
    {
        try
        {
            return Class.forName(x$0);
        }
        catch(ClassNotFoundException x$0)
        {
            throw new NoClassDefFoundError(x$0.getMessage());
        }
    }

    static 
    {
        CREATED = 1;
        CHILD_CREATED = 2;
        DELETED = 4;
        MESSAGE_SEND_SUCCESS = 8;
        MESSAGE_SEND_FAIL = 16;
        MESSAGE_DISPATCH_SUCCESS = 32;
        MESSAGE_DISPATCH_FAIL = 64;
        names = new HashMap();
        try
        {
            Field f[] = (class$com$huawei$insa2$comm$PEvent != null ? class$com$huawei$insa2$comm$PEvent : (class$com$huawei$insa2$comm$PEvent = class$("com.huawei.insa2.comm.PEvent"))).getFields();
            for(int i = 0; i < f.length; i++)
            {
                String name = f[i].getName();
                Object id = f[i].get(null);
                names.put(id, name);
            }

        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -