当前位置: 首页>>代码示例>>Java>>正文


Java AddInterfaceAdapter类代码示例

本文整理汇总了Java中org.parabot.core.asm.adapters.AddInterfaceAdapter的典型用法代码示例。如果您正苦于以下问题:Java AddInterfaceAdapter类的具体用法?Java AddInterfaceAdapter怎么用?Java AddInterfaceAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AddInterfaceAdapter类属于org.parabot.core.asm.adapters包,在下文中一共展示了AddInterfaceAdapter类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: resolveDesc

import org.parabot.core.asm.adapters.AddInterfaceAdapter; //导入依赖的package包/类
private static String resolveDesc(String returnDesc) {
    String array = "";
    if (returnDesc != null && returnDesc.contains("%s")) {
        StringBuilder str = new StringBuilder();
        if (returnDesc.startsWith("[")) {
            for (int i = 0; i < returnDesc.length(); i++) {
                if (returnDesc.charAt(i) == '[') {
                    array += '[';
                }
            }
            returnDesc = returnDesc.replaceAll("\\[", "");
        }
        str.append(array)
                .append('L')
                .append(String.format(returnDesc,
                        AddInterfaceAdapter.getAccessorPackage()))
                .append(";");
        returnDesc = str.toString();
    }
    return returnDesc;
}
 
开发者ID:Parabot,项目名称:Parabot,代码行数:22,代码来源:XMLHookParser.java

示例2: injectHooks

import org.parabot.core.asm.adapters.AddInterfaceAdapter; //导入依赖的package包/类
@Override
public void injectHooks() {
    AddInterfaceAdapter.setAccessorPackage("org/rev317/min/accessors/");
    try {
        super.injectHooks();
    } catch (Exception e) {
        if (Core.inVerboseMode()) {
            e.printStackTrace();
        }
        this.extended = false;
        super.injectHooks();
    }
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-PkHonor,代码行数:14,代码来源:Loader.java

示例3: injectHooks

import org.parabot.core.asm.adapters.AddInterfaceAdapter; //导入依赖的package包/类
@Override
public void injectHooks() {
    AddInterfaceAdapter.setAccessorPackage("org/parabot/osscape/accessors/");
    try {
        super.injectHooks();
    } catch (Exception e) {
        if (Core.inVerboseMode()) {
            e.printStackTrace();
        }
        this.extended = false;
        super.injectHooks();
    }
}
 
开发者ID:Parabot,项目名称:Parabot-317-API-Minified-OS-Scape,代码行数:14,代码来源:Loader.java

示例4: formatDescription

import org.parabot.core.asm.adapters.AddInterfaceAdapter; //导入依赖的package包/类
public String formatDescription(String s) {
    StringBuilder b = new StringBuilder();

    if (s.charAt(0) == '[') {
        for (int j = 0; j < s.length(); j++) {
            if (s.charAt(j) == '[') {
                b.append('[');
            }
        }
        s = s.replaceAll("\\[", "");
    }

    return b.append('L').append(String.format(s, AddInterfaceAdapter.getAccessorPackage())).append(';').toString();
}
 
开发者ID:Parabot,项目名称:Parabot,代码行数:15,代码来源:JSONHookParser.java

示例5: injectHooks

import org.parabot.core.asm.adapters.AddInterfaceAdapter; //导入依赖的package包/类
@Override
public void injectHooks() {
	AddInterfaceAdapter.setAccessorPackage("org/rev377/min/accessors/");
	// default injection is done by bot, it basically parses the hooks file
	super.injectHooks();
}
 
开发者ID:Parabot,项目名称:Parabot-377-API-Minified,代码行数:7,代码来源:Loader.java

示例6: toString

import org.parabot.core.asm.adapters.AddInterfaceAdapter; //导入依赖的package包/类
@Override
public String toString() {
    return String.format("%s implements %s%s", className, AddInterfaceAdapter.getAccessorPackage().replaceAll("/", "."), interfaceClass);
}
 
开发者ID:Parabot,项目名称:Parabot,代码行数:5,代码来源:Interface.java

示例7: getAdapter

import org.parabot.core.asm.adapters.AddInterfaceAdapter; //导入依赖的package包/类
/**
 * Gets the add interface adapter
 *
 * @return AddInterface adapter
 */
public AddInterfaceAdapter getAdapter() {
    return new AddInterfaceAdapter(className, interfaceClass);
}
 
开发者ID:Parabot,项目名称:Parabot,代码行数:9,代码来源:Interface.java


注:本文中的org.parabot.core.asm.adapters.AddInterfaceAdapter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。