當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。