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


Java AbstractInsnNode.getNext方法代码示例

本文整理汇总了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);
                            }
                        }
                    }
                }
            }
        }
    }
}
 
开发者ID:ItzSomebody,项目名称:DirectLeaks-AntiReleak-Remover,代码行数:23,代码来源:InjectorRemover.java

示例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;
}
 
开发者ID:PorPit,项目名称:MineCamera,代码行数:9,代码来源:Transformer.java

示例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};
}
 
开发者ID:shaunlebron,项目名称:flex-fov,代码行数:33,代码来源:BarrierTransformer.java

示例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;
}
 
开发者ID:jonathanedgecombe,项目名称:anvil,代码行数:5,代码来源:AsmUtils.java

示例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;
}
 
开发者ID:jonathanedgecombe,项目名称:anvil,代码行数:5,代码来源:AsmUtils.java

示例6: findNextInstruction

import org.objectweb.asm.tree.AbstractInsnNode; //导入方法依赖的package包/类
static AbstractInsnNode findNextInstruction(AbstractInsnNode node) {
    do {
        node = node.getNext();
    } while (node.getOpcode() == -1);
    return node;
}
 
开发者ID:ibessonov,项目名称:java-tailrec-agent,代码行数:7,代码来源:AsmUtil.java


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