本文整理汇总了Java中org.objectweb.asm.tree.AbstractInsnNode.getNext方法的典型用法代码示例。如果您正苦于以下问题:Java AbstractInsnNode.getNext方法的具体用法?Java AbstractInsnNode.getNext怎么用?Java AbstractInsnNode.getNext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.objectweb.asm.tree.AbstractInsnNode
的用法示例。
在下文中一共展示了AbstractInsnNode.getNext方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stringEncryptionTransformer
import org.objectweb.asm.tree.AbstractInsnNode; //导入方法依赖的package包/类
private static void stringEncryptionTransformer(ClassNode classNode) {
if (classNode.superName.equals("org/bukkit/plugin/java/JavaPlugin") || classNode.superName.equals("net/md_5/bungee/api/plugin/Plugin")) {
for (MethodNode methodNode : classNode.methods) {
InsnList nodes = methodNode.instructions;
for (int i = 0; i < nodes.size(); i++) {
AbstractInsnNode instruction = nodes.get(i);
if (instruction instanceof LdcInsnNode) {
if (instruction.getNext() instanceof MethodInsnNode) {
LdcInsnNode ldc = (LdcInsnNode) instruction;
MethodInsnNode methodinsnnode = (MethodInsnNode) ldc.getNext();
if (ldc.cst instanceof String) {
if (methodinsnnode.name.equalsIgnoreCase("\u0972") && methodinsnnode.desc.equalsIgnoreCase("(Ljava/lang/String;)Ljava/lang/String;")) {
methodNode.instructions.remove(methodinsnnode);
ldc.cst = decryptionArray((String)ldc.cst);
}
}
}
}
}
}
}
}
示例2: findNextLabel
import org.objectweb.asm.tree.AbstractInsnNode; //导入方法依赖的package包/类
public LabelNode findNextLabel(AbstractInsnNode node) {
while (node.getNext() != null) {
if (node.getNext() instanceof LabelNode)
return (LabelNode) node.getNext();
node = node.getNext();
}
return null;
}
示例3: getMethodTransformers
import org.objectweb.asm.tree.AbstractInsnNode; //导入方法依赖的package包/类
@Override
public MethodTransformer[] getMethodTransformers() {
MethodTransformer transformRenderParticle = new MethodTransformer() {
@Override
public MethodName getName() {
return Names.Particle_renderParticle;
}
@Override
public void transform(ClassNode classNode, MethodNode method, boolean obfuscated) {
CLTLog.info("Found method: " + method.name + " " + method.desc);
for (AbstractInsnNode instruction : method.instructions.toArray()) {
if (instruction.getOpcode() == ISHR) {
CLTLog.info("Found ISHR in method " + getName().all());
for (int i = 0; i < 12; i++) {
instruction = instruction.getNext();
}
transformParticle(classNode, method, instruction, 14);
break;
}
}
}
};
return new MethodTransformer[] {transformRenderParticle};
}
示例4: getNextRealInsn
import org.objectweb.asm.tree.AbstractInsnNode; //导入方法依赖的package包/类
public static @Nullable AbstractInsnNode getNextRealInsn(AbstractInsnNode insn) {
while ((insn = insn.getNext()) != null && insn.getOpcode() == -1);
return insn;
}
示例5: getNextPseudoInsn
import org.objectweb.asm.tree.AbstractInsnNode; //导入方法依赖的package包/类
public static @Nullable AbstractInsnNode getNextPseudoInsn(AbstractInsnNode insn) {
while ((insn = insn.getNext()) != null && insn.getOpcode() != -1);
return insn;
}
示例6: findNextInstruction
import org.objectweb.asm.tree.AbstractInsnNode; //导入方法依赖的package包/类
static AbstractInsnNode findNextInstruction(AbstractInsnNode node) {
do {
node = node.getNext();
} while (node.getOpcode() == -1);
return node;
}