本文整理汇总了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;
}
示例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();
}
}
示例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();
}
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}